Merge pull request #56255 from PucklaMotzer09/control_unfocus

This commit is contained in:
Rémi Verschelde 2022-01-05 10:59:39 +01:00 committed by GitHub
commit c0b3da78ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -589,6 +589,7 @@ void Control::_notification(int p_notification) {
_size_changed();
} break;
case NOTIFICATION_EXIT_TREE: {
release_focus();
get_viewport()->_gui_remove_control(this);
} break;
case NOTIFICATION_READY: {