You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +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;
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
ERR_FAIL_COND(!get_viewport());
|
||||
|
||||
release_focus();
|
||||
get_viewport()->_gui_remove_control(this);
|
||||
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user