Add ctrl+n / ctrl+p as shortcuts for down and up
ctrl+n is used for "next item" aka down, ctrl+p as "previous item" aka up. Fixes #1
This commit is contained in:
parent
26412d400f
commit
43ae293359
|
@ -293,11 +293,13 @@ class CliMenu:
|
||||||
|
|
||||||
@self._kb.add('down', filter=~is_searching)
|
@self._kb.add('down', filter=~is_searching)
|
||||||
@self._kb.add('j', filter=~is_searching)
|
@self._kb.add('j', filter=~is_searching)
|
||||||
|
@self._kb.add('c-n', filter=~is_searching)
|
||||||
def down(event):
|
def down(event):
|
||||||
self.next_item(1)
|
self.next_item(1)
|
||||||
|
|
||||||
@self._kb.add('up', filter=~is_searching)
|
@self._kb.add('up', filter=~is_searching)
|
||||||
@self._kb.add('k', filter=~is_searching)
|
@self._kb.add('k', filter=~is_searching)
|
||||||
|
@self._kb.add('c-p', filter=~is_searching)
|
||||||
def up(event):
|
def up(event):
|
||||||
self.next_item(-1)
|
self.next_item(-1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue