Merge pull request #15074 from PJB3005/17-12-26-remove_gui_focus_on_visibility_loss
Hiding a Control now fires NOTIFICATION_FOCUS_EXIT.
This commit is contained in:
commit
c54ac6a15d
|
@ -2206,7 +2206,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