input/key_bindings library
Classes
- DisableBindingIntent
-
Sentinel intent for alacritty's disable idiom (
action = "None"/ "ReceiveChar"): a binding carrying this removes the matching chord from the shortcuts map (including a default) rather than installing an action. Exposed (not private) so callers can recognise it, but it is never wired to an Action — bindingsToShortcuts drops it after removal. - KeyBinding
- A parsed key binding: a Flutter activator + the Intent it triggers.
Functions
-
bindingsToShortcuts(
List< RawKeyBinding> raw) → (Map<ShortcutActivator, Intent> , Map<Type, Action< )Intent> > -
Build the Shortcuts map for
TerminalView, layering user bindings over defaultTerminalShortcuts. Also returns the (currently empty) extra-actions map placeholder so callers have a stable 2-tuple signature. -
parseKeyBindings(
List< RawKeyBinding> raw) → List<KeyBinding> -
Parse raw bindings (from
[[keyboard.bindings]]) into Flutter bindings. Unknown keys are skipped (logged once); unknown actions become UnsupportedActionIntent;charsproduces a SendEscapeIntent.