Hacky way to support up/down arrows
They actually return 3 chars instead of 1, not sure why, but the third one resolves to "A" for up and "B" for down, so good enough for now. fixes #30
This commit is contained in:
parent
a2d59cdab4
commit
521c329db9
1 changed files with 2 additions and 2 deletions
|
@ -80,10 +80,10 @@ class TimelineApp:
|
|||
if status:
|
||||
webbrowser.open(status['url'])
|
||||
|
||||
elif key.lower() == 'j' or key == curses.KEY_DOWN:
|
||||
elif key.lower() == 'j' or key == 'B':
|
||||
self.select_next()
|
||||
|
||||
elif key.lower() == 'k' or key == curses.KEY_UP:
|
||||
elif key.lower() == 'k' or key == 'A':
|
||||
self.select_previous()
|
||||
|
||||
elif key == 'KEY_RESIZE':
|
||||
|
|
Loading…
Reference in a new issue