From 3d6f991a1742d89640b4b2c104d602de00dc0741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 18 Dec 2019 08:30:03 +0100 Subject: Revert "Allow tab key to be used for shortcuts" This reverts commit cafb888361eba08297dd88b18dc71f4d418525c0. Fixes #34405. Reopens #8799, #24064. --- scene/main/viewport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scene/main') diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 6cfcf51928..a7c7322b0e 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -2407,12 +2407,12 @@ void Viewport::_gui_input_event(Ref 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(); } -- cgit v1.2.3