Hiding a control now fires NOTIFICATION_FOCUS_EXIT.
It always removed the focus from the control, but this happened without firing the relevant notification.
This commit is contained in:
parent
8b0ad17b76
commit
7f0a1c1780
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user