onKeyDownevent handler. The Keyboard sensor is initialized if the
event.codeproperty matches one of the
startkeys passed to
keyboardCodesoption of the Keyboard sensor.
keyboardCodesoptions adheres to the following interface:
<DndContext>if you update these values, as the screen reader instructions assume that the Keyboard sensor is initialized with the default keyboard shortcuts.
25pixels when any of the arrow keys are pressed while dragging.
getNextCoordinatesoption can be used to define a custom coordinate getter function that is passed the latest keyboard
eventalong with the current coordinates:
getNextCoordinatesoption to build on top of the Keyboard sensor and move the active sortable item to its new index depending on the arrow key that is pressed.
smooth, which results in the scroll container being scrolled smoothly to the new coordinates.
auto, which results in the scroll container being scrolled directly to the new coordinates without any animation.