From f0c89048d888f9873286c3b07bb1827a11a0e327 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Mon, 10 Feb 2020 21:39:05 +0100 Subject: [PATCH] Allow to use arrow keys with TOOL_MOVE (cherry picked from commit 18918b4efa7c8ea618cf48a2fce7d41165ce3549) --- editor/plugins/canvas_item_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index a0e5b1c6ea..879de58bbc 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -2077,7 +2077,7 @@ bool CanvasItemEditor::_gui_input_move(const Ref &p_event) { } // Move the canvas items with the arrow keys - if (k.is_valid() && k->is_pressed() && tool == TOOL_SELECT && + if (k.is_valid() && k->is_pressed() && (tool == TOOL_SELECT || tool == TOOL_MOVE) && (k->get_scancode() == KEY_UP || k->get_scancode() == KEY_DOWN || k->get_scancode() == KEY_LEFT || k->get_scancode() == KEY_RIGHT)) { if (!k->is_echo()) { // Start moving the canvas items with the keyboard