mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 03:45:56 +00:00
If unfocused, don't set an initial focus if one was restored in the meantime.
This commit is contained in:
parent
18943786a9
commit
d0d80b1cb2
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user