Merge pull request #57864 from nathanfranke/3/focus-exact-match

This commit is contained in:
Rémi Verschelde 2022-02-09 17:33:22 +01:00 committed by GitHub
commit 7244ea7e20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2464,11 +2464,11 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
next = from->_get_focus_neighbour(MARGIN_BOTTOM); next = from->_get_focus_neighbour(MARGIN_BOTTOM);
} }
} else { } 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(); 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(); next = from->find_prev_valid_focus();
} }