summaryrefslogtreecommitdiffstats
path: root/scene/gui/tree.cpp
diff options
context:
space:
mode:
authorDualMatrix <piet.goris@gmail.com>2018-09-17 22:54:39 +0200
committerDualMatrix <piet.goris@gmail.com>2018-09-20 15:27:37 +0200
commitf8ead1a2ee29b6958bf8be0dc569f397a9cff131 (patch)
treef19624e4d18afb0be199866531dcc408df247952 /scene/gui/tree.cpp
parent8704b7787624da98cece35c1b8b8e51bde709488 (diff)
downloadredot-engine-f8ead1a2ee29b6958bf8be0dc569f397a9cff131.tar.gz
Fixed ctrl+up/down shortcut no longer working in scene tree
Fixed ctrl+up/down shortcut no longer working in scene tree.
Diffstat (limited to 'scene/gui/tree.cpp')
-rw-r--r--scene/gui/tree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp
index be1870068d..775e14613f 100644
--- a/scene/gui/tree.cpp
+++ b/scene/gui/tree.cpp
@@ -2239,13 +2239,13 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
_go_left();
}
- } else if (p_event->is_action("ui_up") && p_event->is_pressed()) {
+ } else if (p_event->is_action("ui_up") && p_event->is_pressed() && !k->get_command()) {
if (!cursor_can_exit_tree) accept_event();
_go_up();
- } else if (p_event->is_action("ui_down") && p_event->is_pressed()) {
+ } else if (p_event->is_action("ui_down") && p_event->is_pressed() && !k->get_command()) {
if (!cursor_can_exit_tree) accept_event();