Skip to content

Commit

Permalink
Revert "Allow tab key to be used for shortcuts"
Browse files Browse the repository at this point in the history
This reverts commit cafb888.

Fixes godotengine#34405.
Reopens godotengine#8799, godotengine#24064.
  • Loading branch information
akien-mga authored and yaelatletl committed Dec 24, 2019
1 parent f9c608c commit c7e6a5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scene/main/viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2407,12 +2407,12 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {

Input *input = Input::get_singleton();

if (!mods && p_event->is_action_pressed("ui_focus_next") && input->is_action_just_pressed("ui_focus_next")) {
if (p_event->is_action_pressed("ui_focus_next") && input->is_action_just_pressed("ui_focus_next")) {

next = from->find_next_valid_focus();
}

if (!mods && p_event->is_action_pressed("ui_focus_prev") && input->is_action_just_pressed("ui_focus_prev")) {
if (p_event->is_action_pressed("ui_focus_prev") && input->is_action_just_pressed("ui_focus_prev")) {

next = from->find_prev_valid_focus();
}
Expand Down

0 comments on commit c7e6a5e

Please sign in to comment.