From f8ead1a2ee29b6958bf8be0dc569f397a9cff131 Mon Sep 17 00:00:00 2001 From: DualMatrix Date: Mon, 17 Sep 2018 22:54:39 +0200 Subject: [PATCH] Fixed ctrl+up/down shortcut no longer working in scene tree Fixed ctrl+up/down shortcut no longer working in scene tree. --- scene/gui/tree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index be1870068de..775e14613fb 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2239,13 +2239,13 @@ void Tree::_gui_input(Ref 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();