ui/keybindings/keybinding_types library
Classes
- ChordCancelledResult
- ChordStartedResult
- MatchResult
- NoMatchResult
- ParsedBinding
- A resolved keybinding.
- ParsedKeystroke
- A parsed keystroke.
- ResolveResult
- Result of key resolution.
- UnboundResult
Enums
- KeybindingContext
- Keybinding contexts.
Functions
-
keystrokesEqual(
ParsedKeystroke a, ParsedKeystroke b) → bool - Check if two keystrokes match (handles alt/meta equivalence).
-
parseChord(
String input) → Chord - Parse a chord string like "ctrl+k ctrl+s".
-
parseKeystroke(
String input) → ParsedKeystroke - Parse a keystroke string like "ctrl+shift+k".
Typedefs
-
Chord
= List<
ParsedKeystroke> - A chord — sequence of keystrokes (e.g., Ctrl+K followed by Ctrl+S).