Skip to content

Commit

Permalink
fix: escape help screen correct
Browse files Browse the repository at this point in the history
  • Loading branch information
pommee committed Jun 12, 2024
1 parent 67bc2a9 commit c330707
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions application/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,11 @@ def set_header(self):

def on_key(self, event: Input.Submitted) -> None:
key = str(event.name)
if self.query_one(Input).has_focus and key == "escape":
self.action_toggle_search_log()
try:
if self.query_one(Input).has_focus and key == "escape":
self.action_toggle_search_log()
except:
pass

def action_logs(self):
self.MODE = "logs"
Expand Down

0 comments on commit c330707

Please sign in to comment.