Expand description
Structured key identity for hooks, hints, and keymaps. Structured key identity for hooks, hints, and keymaps.
GPUI hands out key strings ([gpui::Keystroke]); this module interprets
them once, at the translation boundary
(twrite_gpui::translate_key_down). Everything downstream — hook
matching, menu hints, vim-style sequences — speaks KeyCode, so
inconsistent spellings ("arrowup" vs "up", "ctrl + l" vs "Ctrl+U")
are impossible by construction.
Enums§
- KeyCode
- A single key, crossterm-style: one
KeyCode::Charvariant absorbs all printable characters instead of per-letter variants.