Skip to content

Web: the palette in the mirror, controls' roles and states, and an app window's keys - #994

Merged
Hona merged 2 commits into
devfrom
a11y-web-palette
Nov 14, 2026
Merged

Hona merged 2 commits into
devfrom
a11y-web-palette

Conversation

@Hona

@Hona Hona commented Nov 14, 2026

Copy link
Copy Markdown
Member

Read in Chromium over CDP, the web build's mirror was empty while the command palette was open, and an app window let Ctrl+W close itself.

  • An open modal is mirrored (web_a11y_items): a node outside the modal's scope was skipped with its subtree, and the modal's ancestors (the root among them) are outside it, so the mirror held nothing. Ancestors of the active modal (Runtime::modal_ancestor) are now descended into, saying nothing themselves; their other children are still skipped.
  • Controls carry their roles and states: listbox, dialog and alertdialog become role-carrying divs, as the table parts are. A mirrored button whose role is a control's (option, tab, switch, checkbox, radio, menuitem*, treeitem) carries role, aria-selected, aria-checked and aria-posinset/aria-setsize (El::position_in_set), set by syncA11y.
  • Keys in an app window (browserShortcut): with Alt, only Ctrl+Alt+I/J/U stay the browser's, so Ctrl+Alt+W reaches the app (OpenCode's close-tab key in a browser tab). In an installed app's window (display-mode standalone/window-controls-overlay/minimal-ui, or navigator.standalone) Ctrl+W, T and N are the app's: Chromium reserves no keys there, and closes the window on a Ctrl+W the page lets through.
flowchart LR
  root["root (modal ancestor: descended, silent)"] --> page["page behind (skipped)"]
  root --> dialog["div role=dialog"] --> listbox["div role=listbox"] --> group["div role=group"] --> option["button role=option aria-selected aria-posinset/setsize"]
Loading
Before After
Palette open mirror empty dialog > listbox > group > option
Ctrl+Alt+W, browser tab not prevented the app's
Ctrl+W, app window not prevented: the window closes the app's

Copilot AI balanced review requested due to automatic review settings November 14, 2026 20:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Hona
Hona merged commit 7a1e2f3 into dev Nov 14, 2026
1 check passed
@Hona
Hona deleted the a11y-web-palette branch November 14, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants