Unfocus Control on NOTIFICATION_EXIT_TREE
(cherry picked from commit be2d59fa0a
)
This commit is contained in:
parent
2dc30888bf
commit
05eb33e701
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue