Expand description
TUI key bindings (spec §10/§11): the action set, the default keymap, and
parsing/rendering of key strings such as ctrl+u or f5.
A KeyChord is a normalized key + modifier combination used as the map
key. Normalization makes matching terminal-independent: Shift+Tab (reported
by terminals as BackTab) becomes Tab+SHIFT, and the SHIFT modifier is
dropped from character keys (the shift is already encoded in the character).
Structs§
- KeyChord
- A normalized key + modifier combination.
- Keymap
- A mapping from key chords to actions (spec §10 defaults, overridable per
action by
ui.keybindings).
Enums§
- KeyAction
- A TUI action that can be bound to a key (spec §10/§11). The 24 variants match
the action names accepted by
ui.keybindings.