Expand description
Key combination parser.
Parses human-readable key strings like “Ctrl+Shift+B” into KeyCombo structs. Also supports physical key codes for language-agnostic bindings (e.g., “Ctrl+[KeyZ]”).
Structs§
- KeyCombo
- A parsed key combination (modifiers + key).
- Modifiers
- Set of active modifiers for a key combination.
- Parse
Error - Error type for key parsing failures.
Enums§
- Parsed
Key - The actual key (either a character or a named key).
Functions§
- key_
combo_ to_ bytes - Convert a parsed
KeyCombointo terminal byte sequence(s). - parse_
key_ combo - Parse a key combination string into a KeyCombo.
- parse_
key_ sequence - Parse a key sequence string into a list of byte sequences.