Skip to content

Commit

Permalink
Escape closes timeline
Browse files Browse the repository at this point in the history
As Escape does the same as Q when closing the app and overlays, it should do the same with timelines
  • Loading branch information
RasmusLindroth authored and ihabunek committed Sep 6, 2019
1 parent 25ff232 commit 3a56243
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions toot/tui/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ def keypress(self, size, key):
self._emit("close")
return

if key == "esc" and self.is_thread:
self._emit("close")
return

if key in ("r", "R"):
self._emit("reply", status)
return
Expand Down

0 comments on commit 3a56243

Please sign in to comment.