Browse Source

Use right arrow to select/deselect in CliMultiMenu

For a menu where we only select one option right arrow is an okay-choice
for accept, but with multiple option selection toggling feels more
natural.
dev
Sebastian Lohff 2 years ago
parent
commit
12552d8e5b
  1. 1
      clintermission/climenu.py

1
clintermission/climenu.py

@ -350,6 +350,7 @@ class CliMultiMenu(CliMenu): @@ -350,6 +350,7 @@ class CliMultiMenu(CliMenu):
def _register_extra_kb_cbs(self, kb):
@kb.add('space', filter=~is_searching)
@kb.add('right', filter=~is_searching)
def mark(event):
if self._pos not in self._multi_selected:
self._multi_selected.append(self._pos)

Loading…
Cancel
Save