feat: keyboard and screen-reader basics for dialogs, toolbar, and tree

Dialogs move focus in on open, trap Tab, close on Escape, and return focus.
Toolbar icon buttons get aria-labels; away/whisper carets expose their menu
state. Channel and client rows are focusable: Enter joins/opens chat, Space
selects, arrows collapse/expand, the context-menu key opens the menu with
focus on its first item.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
MoepchiandClaude Opus 5.5 committed 2026-10-03 01:50:29 +00:00
1 parent bf4507ae9d
commit 81107c659e
3 files changed
+105 -31

No files matched your search

+8 -13
View File
@@ -47,21 +47,16 @@ This roadmap is intentionally outcome-focused. It does not promise fixed dates.
### Accessibility
The interface currently assumes a mouse and sighted use; a real pass is
still needed:
Basics are in place: the UI language sets the document's `lang`/`dir`,
dialogs take focus on open, keep Tab inside, close on Escape, and hand focus
back; toolbar icon buttons are labelled; channel and client rows are
focusable (Enter joins a channel or opens a private chat, Space selects,
the context-menu key or Shift+F10 opens the menu with focus in it). Still to do:
- Replace clickable `<div>`s that aren't real `<button>`s with actual
buttons, so they're reachable and operable by keyboard
- Add keyboard handlers next to the many click-only interactions (channel
tree, context menus, client list)
- Label icon-only toggle controls (mute, away, streaming, recording, ...)
with `aria-label`/`aria-pressed` so their state is announced, not just shown
as a color/icon change
- Fix the document's `lang` attribute to follow the active UI language
instead of staying fixed
- Manage focus in modals and dialogs: move it in on open, return it on close
- Replace the remaining clickable `<div>`s with real buttons
- Arrow-key navigation through the tree and menus
- Do a full screen-reader pass (NVDA/VoiceOver) through a real connect
session to find what else is missing beyond the above
session to find what else is missing
### Deployment experience