From c27b05febbc4d3027f9bba304dc90b78c9b4fc0d Mon Sep 17 00:00:00 2001 From: Nathan Franke Date: Wed, 9 Feb 2022 10:18:58 -0600 Subject: [PATCH] use exact match when checking focus next / previous --- 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 65302b620af..2298f3981d2 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2464,11 +2464,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)) { + if (p_event->is_action_pressed("ui_focus_next", true, true)) { next = from->find_next_valid_focus(); } - if (p_event->is_action_pressed("ui_focus_prev", true)) { + if (p_event->is_action_pressed("ui_focus_prev", true, true)) { next = from->find_prev_valid_focus(); }