summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorPucklaMotzer09 <jonaas.pucher000000@gmail.com>2021-12-26 17:53:07 +0100
committerPucklaMotzer09 <jonaas.pucher000000@gmail.com>2021-12-26 17:53:07 +0100
commitbe2d59fa0a77d60b19748a304fb74c386dd8e114 (patch)
treefedc50fafabe1e5c0795913d138936f9ba796902 /scene/gui
parent28174d531b7128f0281fc2b88da2f4962fd3513e (diff)
Unfocus Control on NOTIFICATION_EXIT_TREE
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/control.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp
index 1fdc30eb6d..1d988cd7d0 100644
--- a/scene/gui/control.cpp
+++ b/scene/gui/control.cpp
@@ -589,6 +589,7 @@ void Control::_notification(int p_notification) {
_size_changed();
} break;
case NOTIFICATION_EXIT_TREE: {
+ release_focus();
get_viewport()->_gui_remove_control(this);
} break;
case NOTIFICATION_READY: {