If unfocused, don't set an initial focus if one was restored in the meantime.

This commit is contained in:
Nolan Darilek 2019-10-03 09:52:41 -05:00
parent 18943786a9
commit d0d80b1cb2

View File

@ -13,7 +13,8 @@ func click_focused(node):
func restore_focus():
var focus = find_focusable_control(get_tree().root)
if focus:
if focus and not focus.get_focus_owner():
print("Restoring focus.")
focus.grab_focus()
focus.grab_click_focus()