Swap _forward_event over to focsuable (from can_focus)

This commit is contained in:
Dave Pearson
2023-02-13 16:12:28 +00:00
parent 850c140a05
commit 813c89c1ef

View File

@@ -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()