WEFT_OS/crates/weft-servo-shell/src
Marco Allegretti fda9a7c22f
fix(shell): make the system UI operable from the keyboard
The launcher button, app icons and taskbar entries were custom elements
with click handlers only: none could be focused, named or activated from
the keyboard, and the launcher overlay neither took nor returned focus.

They are now buttons with accessible names and a visible focus ring. The
launcher is a modal dialog that a Super tap or the Apps button opens
with focus on its first app; Tab moves between apps, Enter opens one and
Escape or another Super tap closes it, returning focus to the Apps
button. Each taskbar entry has an activate and a close button reachable
with Tab, and focus moves to a remaining control when an entry closes or
goes away. Notifications, including the offer to force quit, are
announced as status.

Servo does not tell the document when its window loses keyboard focus,
so weft-servo-shell calls window.weftShellBlurred() then and the launcher
closes; the next Super tap opens it again. Servo does not evaluate
prefers-reduced-motion either, so the page has no transitions.

tests/frame/check_system_ui.py drives the real page on the nested
desktop with keys: opening apps from the launcher, reaching the shell
with a Super tap from an application, a Super chord that stays with the
app and leaves no Super modifier held there, activating and closing apps
from the taskbar, the launcher closing when the shell loses focus, and
toggling it. It fails without the compositor's Super handling or the
focus-loss call.
2026-10-09 20:21:32 +00:00
..
protocols feat(servo-shell): add weft-shell-protocol client-side binding 2026-03-11 08:05:03 +01:00
embedder.rs fix(shell): make the system UI operable from the keyboard 2026-10-09 20:21:32 +00:00
keyutils.rs fix(shells): report the Super keys to pages as Meta 2026-10-09 20:21:26 +00:00
main.rs fix(shell): gate servo-embed-only modules 2026-03-13 12:52:19 +01:00
shell_client.rs fix(compositor): reserve the taskbar strip and lay app windows out in the work area 2026-10-09 16:00:38 +00:00