chords property

List<({String id, KeyBinding key, KeyBinding prefix})>? chords
getter/setter pair

Optional multi-key chord bindings.

Each entry defines a chord: a prefix keybinding followed by a continuation keybinding. Use toChordBindings to convert these into KeyChordBinding objects for KeyChordInterceptor.

chords = [
  (prefix: ctrlX, key: sBinding, id: 'save'),
  (prefix: ctrlX, key: qBinding, id: 'quit'),
];

Implementation

List<({KeyBinding prefix, KeyBinding key, String id})>? chords;