Skip to content

Commit

Permalink
sneaky commit, bet Darren doesn't notice.
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Nov 20, 2024
1 parent e6ade76 commit f1a6036
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/textual/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,10 @@ def get_focusable_widget_at(self, x: int, y: int) -> Widget | None:
except NoWidget:
return None

if widget.has_class("-textual-system"):
# Clicking Textual system widgets should not focus anything
return None

for node in widget.ancestors_with_self:
if isinstance(node, Widget) and node.focusable:
return node
Expand Down

0 comments on commit f1a6036

Please sign in to comment.