mirror of
https://github.com/godotengine/godot.git
synced 2025-02-18 16:50:48 +00:00
use exact match when checking focus next / previous
This commit is contained in:
parent
6ea58db2d8
commit
c27b05febb
@ -2464,11 +2464,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)) {
|
||||
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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user