Generalize focusable control finding

This commit is contained in:
Isaiah Odhner 2023-05-05 16:46:21 -04:00
parent c8c468662d
commit 5dd74165bc

View File

@ -157,7 +157,7 @@ class Window(Container):
self.last_focused_descendant.focus(scroll_visible=scroll_visible)
return self
# Otherwise the submit button or first focusable control
for query in [".submit", "Input, Button"]:
for query in [".submit", "Widget"]:
controls = self.content.query(query)
if controls:
for control in controls: