diff options
author | PJB3005 <pieterjan.briers+git@gmail.com> | 2017-12-26 20:58:53 +0100 |
---|---|---|
committer | PJB3005 <pieterjan.briers+git@gmail.com> | 2017-12-26 20:58:53 +0100 |
commit | 7f0a1c1780508f236e2b80713a87c5f71ed6e600 (patch) | |
tree | b1132adf67685bcfec75bb31951fd6bfecbfd3ab | |
parent | 8b0ad17b760b6cc803edc815fe65f8de1d92bf74 (diff) |
Hiding a control now fires NOTIFICATION_FOCUS_EXIT.
It always removed the focus from the control, but this happened without firing the relevant notification.
-rw-r--r-- | scene/main/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 8f431389d8..df11a75470 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) |