Keyboard Navigation
Focus model
The grid canvas must have DOM focus to receive keyboard events. Click on the canvas or use tab navigation to focus it.
Navigation shortcuts
MoveSelection command
Arrow key presses translate to MoveSelection:
When extend is true, the anchor stays fixed and only the focus moves,
expanding the selected range.
Editing via keyboard
- Enter or double-click →
StartEdit - Type the new value
- Enter →
CommitEdit - Escape →
CancelEdit
Event handling
The web layer (rs-grid-web) listens to keydown events on the canvas
and converts them to GridCommand values. The browser's default behavior
is prevented for handled keys to avoid scrolling or other unwanted actions.