kopia lustrzana https://github.com/ihabunek/toot
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 #30pull/39/head
rodzic
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':
|
||||
|
|
Ładowanie…
Reference in New Issue