mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 03:45:56 +00:00
Ensure initial focus is a Control.
This commit is contained in:
parent
2f1ad85f1d
commit
c81d3fc4a4
|
@ -19,6 +19,7 @@ func set_initial_screen_focus(screen):
|
|||
augment_tree(root)
|
||||
if screen == "3D":
|
||||
focus = root.find_node("ToolButton", true, false)
|
||||
if focus is Control:
|
||||
print("Focus ",focus)
|
||||
focus.grab_click_focus()
|
||||
focus.grab_focus()
|
||||
|
|
Loading…
Reference in New Issue
Block a user