Add k/j as up/down keys

This commit is contained in:
Sebastian Lohff 2019-02-04 11:36:07 +01:00
parent 0517b4d996
commit 2f2049bfef
1 changed files with 2 additions and 0 deletions

View File

@ -185,10 +185,12 @@ class CliMenu:
event.app.exit()
@self._kb.add('down')
@self._kb.add('j')
def down(event):
self.next_item(1)
@self._kb.add('up')
@self._kb.add('k')
def up(event):
self.next_item(-1)