Keyboard and custom aria
Keyboard drags, your own screen reader strings and the key that starts a drag.
To do
- Water the plants
- Buy milk
- Call the bank
Done
- Book the flights
Locked
- Pay the rent
Last announcement: Nothing announced yet.
Press Space or Enter on an item to pick it up, move it with the arrow keys, press Tab to carry it to the other list, and press the key again to drop it. The demo replaces every screen reader string with configure({ ariaStrings }) and shows each announcement under the lists, and the select changes the drag keys with configure({ keyboardDragTrigger }). The aria-label of each zone and item is what the announcements call it, and the locked list has dragDisabled, so it gets its own instruction. See the options for dragDisabled and the other options of a zone.
The keyboard and screen readers guide explains the trigger, the strings and the events of a keyboard drag.