MCPcopy Create free account
hub / github.com/adobe/react-spectrum / keyboardUpdate

Function keyboardUpdate

packages/react-aria/src/slider/useSliderThumb.ts:145–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 let currentPosition = useRef<number>(null);
144
145 let keyboardUpdate = cb => {
146 // remember to set this so that onChangeEnd is fired
147 state.setThumbDragging(index, true);
148 cb();
149 state.setThumbDragging(index, false);
150 };
151
152 let {keyboardProps} = useKeyboard({
153 shortcuts: {

Callers 1

useSliderThumbFunction · 0.70

Calls 2

setThumbDraggingMethod · 0.80
cbFunction · 0.50

Tested by

no test coverage detected