1
0
mirror of https://github.com/ihabunek/toot synced 2024-12-23 15:37:47 +01:00
Toot-Mastodon-CLI-TUI-clien.../toot/tui/__init__.py
2019-09-03 15:40:42 +02:00

11 lines
295 B
Python

from urwid.command_map import command_map
from urwid.command_map import CURSOR_UP, CURSOR_DOWN, CURSOR_LEFT, CURSOR_RIGHT
# Add movement using h/j/k/l to default command map
command_map._command.update({
'k': CURSOR_UP,
'j': CURSOR_DOWN,
'h': CURSOR_LEFT,
'l': CURSOR_RIGHT,
})