WarUI

Cell Edit Mode and Interactive Cell Content

GRID-A23-F13P0baselinePlanned

The grid separates navigation mode from interaction mode. Enter or F2 activates editing or the focusable content inside a cell, Escape returns to navigation, and Tab moves between interactive elements within a row when in interaction mode. Buttons, links and inputs inside cells therefore stay operable without breaking arrow-key navigation.

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

Live example

An order grid with an editable Quantity column, a select-based Status column and an Actions column with two buttons.

Expected behavior

Navigation keys do not reach editors until edit mode starts. Escape cancels and restores the value. Validation errors are associated with the editor via aria-describedby and announced.

Planned API surface

editableeditTriggerstartEdit()stopEdit()cellEditStartcellEditCommitcellEditCancelinteractionMode

Acceptance criteria

  • In navigation mode, focusable descendants inside cells have tabindex=-1. (pending)
  • Enter or F2 enters interaction mode and focuses the first focusable element in the cell. (pending)
  • Escape exits interaction mode and returns focus to the cell. (pending)
  • Editors have an accessible name combining the column header and row identity. (pending)
  • Validation errors set aria-invalid and are announced. (pending)