Skip to content

Commit

Permalink
fix: dont send keypress to typing screen if invisible
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Feb 15, 2024
1 parent d7d1c8b commit 9426f4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions smassh/ui/screens/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,8 @@ def compose(self) -> ComposeResult:
yield TypingSpace()

async def handle_key(self, event: events.Key):
if not self.visible:
return

key = event.character if event.is_printable and event.character else event.key
self.query_one(TypingSpace).keypress(key)

0 comments on commit 9426f4c

Please sign in to comment.