WarUI

Keyboard range selection

GRID-A12-F02P0baselinePlanned

Users extend a selection from the anchor cell with Shift plus Arrow keys, Shift+Ctrl/Cmd+Arrow to jump to the data edge, and Shift+Home/End/PageUp/PageDown. This gives keyboard-only users the same range selection power as pointer users.

Planned. This page shows the specification from issue #191. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid with some empty cells in it, so that jump-to-edge behaviour is visible. Cell B2 is focused.

Expected behavior

Shift+Arrow grows or shrinks the range by one cell. Shift+Ctrl+Arrow extends the range to the last non-empty cell before a gap. Shift+PageDown extends the range by one viewport height.

Planned API surface

rangeSelection.keyboardkeymap.extendSelectionselection:rangeChangegetActiveCell()

Acceptance criteria

  • The anchor cell stays fixed while the moving edge follows each key press (pending)
  • Shift+Ctrl+Down stops at the last non-empty cell of a contiguous block (pending)
  • Shift+Ctrl+A or Ctrl+A selects all cells (pending)
  • Pressing Escape collapses the selection to the active cell (pending)
  • The shortcuts can be remapped through keymap (pending)