summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorNils ANDRÉ-CHANG <nils@nilsand.re>2019-07-20 22:32:49 +0100
committerNils ANDRÉ-CHANG <nils@nilsand.re>2019-07-20 22:32:49 +0100
commitcafb888361eba08297dd88b18dc71f4d418525c0 (patch)
treee78880abacb35d9602b51fc05dd89d51c286f42b /scene/main
parent437939589234559febabb9a4c392145521a9c3a5 (diff)
Allow tab key to be used for shortcuts
Diffstat (limited to 'scene/main')
-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 9466b7c5c1..26c9716e90 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -2291,12 +2291,12 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) {
if (from && p_event->is_pressed()) {
Control *next = NULL;
- if (p_event->is_action_pressed("ui_focus_next")) {
+ if (!mods && p_event->is_action_pressed("ui_focus_next")) {
next = from->find_next_valid_focus();
}
- if (p_event->is_action_pressed("ui_focus_prev")) {
+ if (!mods && p_event->is_action_pressed("ui_focus_prev")) {
next = from->find_prev_valid_focus();
}