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 committed 2026-11-10 21:08:17 +01:00
1 parent 5da06976a0
commit b2a4a56c70
8 files changed
+152 -3

No files matched your search

+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')