mirror of
https://github.com/ihabunek/toot.git
synced 2024-12-04 14:46:33 -05:00
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
@ -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 New Issue
Block a user