aboutsummaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorPJB30052017-12-26 20:58:53 +0100
committerPJB30052017-12-26 20:58:53 +0100
commit7f0a1c1780508f236e2b80713a87c5f71ed6e600 (patch)
treeb1132adf67685bcfec75bb31951fd6bfecbfd3ab /scene
parent8b0ad17b760b6cc803edc815fe65f8de1d92bf74 (diff)
downloadgodot-7f0a1c1780508f236e2b80713a87c5f71ed6e600.tar.gz
godot-7f0a1c1780508f236e2b80713a87c5f71ed6e600.tar.zst
godot-7f0a1c1780508f236e2b80713a87c5f71ed6e600.zip
Hiding a control now fires NOTIFICATION_FOCUS_EXIT.
It always removed the focus from the control, but this happened without firing the relevant notification.
Diffstat (limited to 'scene')
-rw-r--r--scene/main/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index 8f431389d..df11a7547 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -2302,7 +2302,7 @@ void Viewport::_gui_hid_control(Control *p_control) {
*/
if (gui.key_focus == p_control)
- gui.key_focus = NULL;
+ _gui_remove_focus();
if (gui.mouse_over == p_control)
gui.mouse_over = NULL;
if (gui.tooltip == p_control)