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:
Juan Linietsky 2018-05-08 09:40:44 -03:00 committed by GitHub
commit c54ac6a15d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)