Remove get_focus_owner() from Control, replaced by get_viewport()->gui_get_focus_owner()

This commit is contained in:
Gilles Roudière
2022-02-03 11:59:32 +01:00
parent 36880714e4
commit 73e784de1e
13 changed files with 12 additions and 26 deletions

View File

@ -78,7 +78,7 @@ void SceneTreeDock::input(const Ref<InputEvent> &p_event) {
void SceneTreeDock::unhandled_key_input(const Ref<InputEvent> &p_event) {
ERR_FAIL_COND(p_event.is_null());
if (get_focus_owner() && get_focus_owner()->is_text_field()) {
if (get_viewport()->gui_get_focus_owner() && get_viewport()->gui_get_focus_owner()->is_text_field()) {
return;
}