1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-06-23 06:25:26 +00: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:
Ivan Habunek 2018-01-05 17:43:44 +01:00
parent a2d59cdab4
commit 521c329db9
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -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':