From c82740e101a2506bc85e8111498287619c7f79bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 23 Feb 2022 15:00:56 +0100 Subject: [PATCH] Revert "use exact match when checking focus next / previous" This reverts commit 4ef3985dc380c8416e6b39006e7299bf2fa94f67. This wasn't meant to be included in the `3.4` branch, as it's a fix for a change introduced in `3.x`. Fixes #58460. --- scene/main/viewport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 489157db211..1c5b8691b5a 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2454,11 +2454,11 @@ void Viewport::_gui_input_event(Ref p_event) { next = from->_get_focus_neighbour(MARGIN_BOTTOM); } } else { - if (p_event->is_action_pressed("ui_focus_next", true, true)) { + if (p_event->is_action_pressed("ui_focus_next", true)) { next = from->find_next_valid_focus(); } - if (p_event->is_action_pressed("ui_focus_prev", true, true)) { + if (p_event->is_action_pressed("ui_focus_prev", true)) { next = from->find_prev_valid_focus(); }