MultiSearchKeyMap constructor
MultiSearchKeyMap({
- KeyBinding? up,
- KeyBinding? down,
- KeyBinding? home,
- KeyBinding? end,
- KeyBinding? pageUp,
- KeyBinding? pageDown,
- KeyBinding? cancel,
- KeyBinding? toggle,
- KeyBinding? toggleAll,
- KeyBinding? confirm,
Implementation
MultiSearchKeyMap({
super.up,
super.down,
super.home,
super.end,
super.pageUp,
super.pageDown,
super.cancel,
KeyBinding? toggle,
KeyBinding? toggleAll,
KeyBinding? confirm,
}) : toggle =
toggle ??
KeyBinding(
keys: [' ', 'ctrl+space'],
help: Help(key: 'space', desc: 'toggle'),
),
toggleAll =
toggleAll ??
KeyBinding(
keys: ['ctrl+a'],
help: Help(key: '^a', desc: 'toggle all'),
),
confirm =
confirm ??
KeyBinding(
keys: ['enter'],
help: Help(key: '↵', desc: 'confirm'),
);