mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Swap _forward_event over to focsuable (from can_focus)
This commit is contained in:
@@ -547,7 +547,7 @@ class Screen(Widget):
|
||||
except errors.NoWidget:
|
||||
self.set_focus(None)
|
||||
else:
|
||||
if isinstance(event, events.MouseUp) and widget.can_focus:
|
||||
if isinstance(event, events.MouseUp) and widget.focusable:
|
||||
if self.focused is not widget:
|
||||
self.set_focus(widget)
|
||||
event.stop()
|
||||
|
||||
Reference in New Issue
Block a user