summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-07 18:32:54 +0100
committerGitHub <noreply@github.com>2019-11-07 18:32:54 +0100
commit2d3fcd0ff0022a0fc36cf201d6628618507d5309 (patch)
treeb281e56e5def583fe8670d39090cd69d7312af7d
parent6a40b6767a2c2ba0e249e34270d9604c65a54075 (diff)
parent0024dd7bb5a8a5194ed0283fc506edcd8b4a7737 (diff)
Merge pull request #30721 from NilsIrl/tab_key
Allow tab key to be used for shortcuts
-rw-r--r--scene/main/viewport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index 95536bbb23..d060ac273d 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -2298,12 +2298,12 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
Input *input = Input::get_singleton();
- if (p_event->is_action_pressed("ui_focus_next") && input->is_action_just_pressed("ui_focus_next")) {
+ if (!mods && p_event->is_action_pressed("ui_focus_next") && input->is_action_just_pressed("ui_focus_next")) {
next = from->find_next_valid_focus();
}
- if (p_event->is_action_pressed("ui_focus_prev") && input->is_action_just_pressed("ui_focus_prev")) {
+ if (!mods && p_event->is_action_pressed("ui_focus_prev") && input->is_action_just_pressed("ui_focus_prev")) {
next = from->find_prev_valid_focus();
}