mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-11 08:33:02 +03:00
Generalize focusable control finding
This commit is contained in:
parent
c8c468662d
commit
5dd74165bc
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user