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