diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2020-02-10 21:39:05 +0100 |
---|---|---|
committer | Tomasz Chabora <kobewi4e@gmail.com> | 2020-02-10 21:39:05 +0100 |
commit | 18918b4efa7c8ea618cf48a2fce7d41165ce3549 (patch) | |
tree | 8372e1fb1460055b6f11a726a3b0bcfc15f40f4d | |
parent | 78074fed8dc38e74b9fe2962e8c015d1a1f9ae48 (diff) |
Allow to use arrow keys with TOOL_MOVE
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 054c7741ba..b06e52c6ce 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -2108,7 +2108,7 @@ bool CanvasItemEditor::_gui_input_move(const Ref<InputEvent> &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 |