mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 11:55: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)
|
augment_tree(root)
|
||||||
if screen == "3D":
|
if screen == "3D":
|
||||||
focus = root.find_node("ToolButton", true, false)
|
focus = root.find_node("ToolButton", true, false)
|
||||||
print("Focus ",focus)
|
if focus is Control:
|
||||||
focus.grab_click_focus()
|
print("Focus ",focus)
|
||||||
focus.grab_focus()
|
focus.grab_click_focus()
|
||||||
|
focus.grab_focus()
|
||||||
|
|
||||||
func set_initial_scene_focus(scene):
|
func set_initial_scene_focus(scene):
|
||||||
print("Set focus in scene")
|
print("Set focus in scene")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user