mirror of
https://github.com/ihabunek/toot
synced 2024-12-23 07:27:12 +01:00
Let <Esc> move back to "home" timeline
When not in overlay mode, we handle <Esc> key press to get back to the "home" timeline. This allows to navigate quickly from another timeline to the home one, without getting through the "go to" menu.
This commit is contained in:
parent
69f110b474
commit
4d1fa837a1
@ -519,6 +519,11 @@ class TUI(urwid.Frame):
|
||||
elif key == 'esc':
|
||||
if self.overlay:
|
||||
self.close_overlay()
|
||||
elif self.timeline.name != "home":
|
||||
# similar to goto_home_timeline() but without handling overlay (absent here)
|
||||
self.timeline_generator = api.home_timeline_generator(
|
||||
self.app, self.user, limit=40)
|
||||
self.async_load_timeline(is_initial=True, timeline_name="home")
|
||||
|
||||
elif key in ('q', 'Q'):
|
||||
if self.overlay:
|
||||
|
Loading…
Reference in New Issue
Block a user