Enter and Space can't press a focused button #322
Labels
No labels
area/ci
area/desktop
area/packaging
area/protocol
area/reading
area/ui
area/web
area/writing
kind/bug
kind/feature
kind/infra
kind/request
needs/user
parked
perf
security
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
littlefox/neokom#322
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while testing #315: the global keys take Enter and Space (the default action, "Läs nästa") even when a button has keyboard focus, so keyboard users can't press "Visa äldre", "Ångra" or any other button with Enter or Space.
Fix: when the focused control was reached with the keyboard (
:focus-visible), Enter and Space go to it. After a mouse click a button keeps focus, but it isn't focus-visible, so space still reads on as before.Fixed in #325; main green (ci #586).
pointerdown: the first try used:focus-visible, and Chromium counts a clicked button as keyboard-focused once any key has been pressed, so Space pressed the button just clicked (charset and settle specs caught it).keys.spec.ts: Tab to Inkorg, then Enter, opens the inbox and reads nothing. It fails without the fix.