1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

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

@@ -2128,7 +2128,7 @@ void FindBar::unhandled_input(const Ref<InputEvent> &p_event) {
Ref<InputEventKey> k = p_event;
if (k.is_valid()) {
if (k->is_pressed() && (rich_text_label->has_focus() || is_ancestor_of(get_focus_owner()))) {
if (k->is_pressed() && (rich_text_label->has_focus() || is_ancestor_of(get_viewport()->gui_get_focus_owner()))) {
bool accepted = true;
switch (k->get_keycode()) {