Skip to content

Commit

Permalink
don't update help for inactive screen
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Aug 21, 2024
1 parent 8ca4682 commit 616baa0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/textual/widgets/_help_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ def update_help(self, focused_widget: Widget | None) -> None:
"""
if not self.app.app_focus:
return
if not self.screen.is_active:
return
self.set_class(focused_widget is not None, "-show-help")
if focused_widget is not None:
help = focused_widget.HELP or ""
Expand Down

0 comments on commit 616baa0

Please sign in to comment.