Revert "use exact match when checking focus next / previous"
This reverts commit 4ef3985dc3
.
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.
This commit is contained in:
parent
f7c191e179
commit
c82740e101
|
@ -2454,11 +2454,11 @@ void Viewport::_gui_input_event(Ref<InputEvent> 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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue