Changed Help key to ?, Documented Save key correctly as E

Fixes #280, #370
This commit is contained in:
Daniel Schwarz 2023-07-02 11:41:26 -04:00 committed by Ivan Habunek
parent d71cc7e3b6
commit 3903307e72
No known key found for this signature in database
GPG key ID: F5F0623FF5EBCB3D
3 changed files with 4 additions and 4 deletions

View file

@ -724,7 +724,7 @@ class TUI(urwid.Frame):
if not self.overlay:
self.show_goto_menu()
elif key in ('h', 'H'):
elif key == '?':
if not self.overlay:
self.show_help()

View file

@ -211,9 +211,9 @@ class Help(urwid.Padding):
yield urwid.Divider()
yield urwid.Text(h(" [Q] - quit toot"))
yield urwid.Text(h(" [G] - go to - switch timelines"))
yield urwid.Text(h(" [P] - save/unsave (pin) current timeline"))
yield urwid.Text(h(" [E] - save/unsave (pin) current timeline"))
yield urwid.Text(h(" [,] - refresh current timeline"))
yield urwid.Text(h(" [H] - show this help"))
yield urwid.Text(h(" [?] - show this help"))
yield urwid.Divider()
yield urwid.Text(("bold", "Status keys"))
yield urwid.Divider()

View file

@ -113,7 +113,7 @@ class Timeline(urwid.Columns):
"[Z]oom",
"Tra[n]slate" if self.tui.can_translate else "",
"Cop[y]",
"[H]elp",
"Help[?]",
]
options = "\n" + " ".join(o for o in options if o)
options = highlight_keys(options, "white_bold", "cyan")