Add k/j as up/down keys
This commit is contained in:
parent
0517b4d996
commit
2f2049bfef
|
@ -185,10 +185,12 @@ class CliMenu:
|
||||||
event.app.exit()
|
event.app.exit()
|
||||||
|
|
||||||
@self._kb.add('down')
|
@self._kb.add('down')
|
||||||
|
@self._kb.add('j')
|
||||||
def down(event):
|
def down(event):
|
||||||
self.next_item(1)
|
self.next_item(1)
|
||||||
|
|
||||||
@self._kb.add('up')
|
@self._kb.add('up')
|
||||||
|
@self._kb.add('k')
|
||||||
def up(event):
|
def up(event):
|
||||||
self.next_item(-1)
|
self.next_item(-1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue