MultiSearchKeyMap constructor

MultiSearchKeyMap({
  1. KeyBinding? up,
  2. KeyBinding? down,
  3. KeyBinding? home,
  4. KeyBinding? end,
  5. KeyBinding? pageUp,
  6. KeyBinding? pageDown,
  7. KeyBinding? cancel,
  8. KeyBinding? toggle,
  9. KeyBinding? toggleAll,
  10. 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'),
         );