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:
BlackAngelTV authored and BlackAngelTV committed 2026-11-11 07:47:31 +01:00
1 parent a3a68399c5
commit 3625e55a43
8 files changed
+152 -3

No files matched your search

+6 -1
View File
@@ -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 {
+3
View File
@@ -534,6 +534,9 @@ func (h *Handler) handle_input_key(ev *loop.KeyEvent) error {
h.text_buffer = strings.Join(g[:len(g)-1], "")
}
h.draw_screen()
case ev.MatchesPressOrRepeat("tab"), ev.MatchesPressOrRepeat("shift+tab"):
// Tabs are not valid in file names, keep them out of the text buffer.
ev.Handled = true
}
return nil
}
+2
View File
@@ -81,6 +81,8 @@ map('Move selection up', 'move_up up move_up')
map('Move selection up', 'move_up --allow-fallback=shifted,ascii k move_up')
map('Move selection down', 'move_down down move_down')
map('Move selection down', 'move_down --allow-fallback=shifted,ascii j move_down')
map('Move selection up', 'move_up shift+tab move_up')
map('Move selection down', 'move_down tab move_down')
map('Move selection up by a page', 'page_up page_up page_up')
map('Move selection up by a page', 'page_up --allow-fallback=shifted,ascii ctrl+b page_up')
map('Move selection down by a page', 'page_down page_down page_down')