feat(accessibility): add default keyboard navigation and contrast docs
Make Tab and Shift+Tab move the selection in the file manager and command palette by default, so both are fully keyboard driven without user configuration. Document keyboard navigation, the native 4.5:1 contrast mode and the absence of default visual changes. Refs #31
This commit is contained in:
1 parent
a3a68399c5
commit
3625e55a43
8 files changed
+152
-3
No files matched your search
@@ -904,11 +904,16 @@ func (h *Handler) onKeyEvent(ev *loop.KeyEvent) error {
|
||||
h.moveSelection(-1)
|
||||
return nil
|
||||
}
|
||||
if ev.MatchesPressOrRepeat("down") {
|
||||
if ev.MatchesPressOrRepeat("down") || ev.MatchesPressOrRepeat("tab") {
|
||||
ev.Handled = true
|
||||
h.moveSelection(1)
|
||||
return nil
|
||||
}
|
||||
if ev.MatchesPressOrRepeat("shift+tab") {
|
||||
ev.Handled = true
|
||||
h.moveSelection(-1)
|
||||
return nil
|
||||
}
|
||||
if ac := h.shortcut_tracker.Match(ev, h.keyboard_shortcuts); ac != nil {
|
||||
ev.Handled = true
|
||||
switch ac.Name {
|
||||
|
||||
Reference in new issue
Block a user