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 4 years ago
parent d01024d1be
commit 12552d8e5b

@ -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