Browse Source

Fixed ctrl+up/down shortcut no longer working in scene tree

Fixed ctrl+up/down shortcut no longer working in scene tree.
DualMatrix 7 years ago
parent
commit
f8ead1a2ee
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scene/gui/tree.cpp

+ 2 - 2
scene/gui/tree.cpp

@@ -2239,13 +2239,13 @@ void Tree::_gui_input(Ref<InputEvent> p_event) {
 			_go_left();
 			_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();
 		if (!cursor_can_exit_tree) accept_event();
 
 
 		_go_up();
 		_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();
 		if (!cursor_can_exit_tree) accept_event();