-
I am struggling to move draggables without using activators. Expected behavior: I added Tab in defaultKeyboardCodes for start property, but still the user should press tab 2 times time to make the draggable activated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can create a new sensor that extends the import {KeyboardSensor} from '@dnd-kit/core';
class FocusKeyboardSensor extends KeyboardSensor {
static activators = [
{
eventName: 'onFocus',
handler(event) {
return true;
}
}
]
} |
Beta Was this translation helpful? Give feedback.
You can create a new sensor that extends the
KeyboardSensor
. Override the activator to beonFocus
rather thanonKeyDown
: