WarUI

Interactive cell content mode (Enter/F2 and Escape)

GRID-A11-F18P0baselinePlanned

Cells containing buttons, links, inputs or editors have a navigation mode and an interaction mode. Enter or F2 moves the focus into the cell's widgets, Tab cycles within them, and Escape returns to grid navigation. This avoids conflicts between arrow keys and inner widgets.

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

A user grid with an Actions column (two buttons), an editable email column and a link column.

Expected behavior

Enter on the Actions cell focuses its first button. Tab moves to the second button. Escape returns the focus to the cell container. Arrow keys inside an input move the caret rather than the grid focus.

Planned API surface

cellInteractionModeenterKeyAction: 'interact' | 'moveDown' | 'edit'onCellInteractStartonCellInteractEnd

Acceptance criteria

  • Inner widgets have tabindex=-1 until interaction mode is entered. (pending)
  • Enter or F2 enters interaction mode and focuses the first inner focusable element. (pending)
  • Escape exits to navigation mode and focuses the containing cell. (pending)
  • Arrow keys are not intercepted by the grid while in interaction mode. (pending)
  • A cell with a single link activates the link directly on Enter (documented shortcut). (pending)