Ensure initial focus is a Control.

This commit is contained in:
Nolan Darilek 2018-06-07 21:31:59 +00:00
parent 2f1ad85f1d
commit c81d3fc4a4

View File

@ -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()