This commit is contained in:
2026-06-14 10:57:36 -05:00
parent 0cf1f92eaa
commit acf0ef6be5
6 changed files with 100 additions and 82 deletions
+5
View File
@@ -67,6 +67,11 @@ func _onFocusLost() -> void:
func _onViewportFocusChanged(control:Control) -> void:
if control == null or is_ancestor_of(control):
return
var node:Node = control
while node != null:
if node is Popup:
return
node = node.get_parent()
if _savedFocusNode != null and is_instance_valid(_savedFocusNode):
_savedFocusNode.grab_focus()
else: