Fix tab focus shortcut

This commit is contained in:
megalobyte 2021-11-10 12:07:00 -05:00
parent 284b50cf30
commit d6fb7322fb

View file

@ -1991,11 +1991,11 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
if (from && p_event->is_pressed()) {
Control *next = nullptr;
if (p_event->is_action_pressed("ui_focus_next", true, true)) {
if (p_event->is_action("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("ui_focus_prev", true)) {
next = from->find_prev_valid_focus();
}