diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-11 09:21:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 09:21:10 +0100 |
commit | 12244c46aea37883c387939ae1d054f24eae978b (patch) | |
tree | 679b62571064cb91de5a0ebd9b586f383c106d86 /editor | |
parent | 227e4c90ed8887447b50b47e0a68ded57bb4f154 (diff) | |
parent | 18918b4efa7c8ea618cf48a2fce7d41165ce3549 (diff) |
Merge pull request #36086 from KoBeWi/TOOL_MOVE_move
Allow to use arrow keys with TOOL_MOVE
Diffstat (limited to 'editor')
-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 4662c64087..ab816dc7f3 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 |