WarUI

Shift-click range selection

GRID-A11-F03P0baselinePlanned

Selects a contiguous block of rows between an anchor row and the clicked row. Shift alone replaces the selection with the range, and Ctrl+Shift adds the range to the existing selection. This makes selecting large blocks fast.

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

Live example

An invoice grid with 200 rows in multiple mode. The anchor row is marked with a subtle indicator in the docs demo.

Expected behavior

Click sets the anchor. Shift+click selects all rows between the anchor and the target in the current visual order. A second Shift+click from the same anchor re-computes the range instead of growing it. Ctrl+Shift+click adds the range to the existing selection.

Planned API surface

selectionMode: 'multiple'selectionAnchorgetSelectionAnchor()onSelectionChange

Acceptance criteria

  • Shift+click selects every selectable row between the anchor and the target, inclusive, in the current displayed order. (pending)
  • A repeated Shift+click from the same anchor replaces the previous range. (pending)
  • Ctrl+Shift+click unions the range with the existing selection. (pending)
  • Shift+click with no anchor behaves like a plain click and sets the anchor. (pending)
  • Non-selectable rows inside a range are skipped and stay unselected. (pending)