You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Unfocus Control on NOTIFICATION_EXIT_TREE
(cherry picked from commit be2d59fa0a)
This commit is contained in:
committed by
Rémi Verschelde
parent
2dc30888bf
commit
05eb33e701
@@ -472,7 +472,7 @@ void Control::_notification(int p_notification) {
|
|||||||
} break;
|
} break;
|
||||||
case NOTIFICATION_EXIT_TREE: {
|
case NOTIFICATION_EXIT_TREE: {
|
||||||
ERR_FAIL_COND(!get_viewport());
|
ERR_FAIL_COND(!get_viewport());
|
||||||
|
release_focus();
|
||||||
get_viewport()->_gui_remove_control(this);
|
get_viewport()->_gui_remove_control(this);
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
|
|||||||
Reference in New Issue
Block a user