mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Fix allow_focus
This commit is contained in:
@@ -303,7 +303,7 @@ class ChangingThemeApp(App[None]):
|
||||
widget.__class__.__name__,
|
||||
(
|
||||
partial(self.set_focus, widget)
|
||||
if widget.can_focus
|
||||
if widget.allow_focus()
|
||||
else lambda: None
|
||||
),
|
||||
f"Focus on {widget.__class__.__name__}",
|
||||
|
||||
Reference in New Issue
Block a user