summaryrefslogtreecommitdiff
path: root/core/input
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-02-22 15:04:09 +0100
committerRémi Verschelde <rverschelde@gmail.com>2021-02-22 15:04:09 +0100
commit12cc660d7d4fccf1649c504ce795ec6bf7aad148 (patch)
treeb5803076b372a3c176b5bacfa4d4dd7f2afdb15c /core/input
parent8c5d4770e901b14750a972f4e2d3ac1e124ebff7 (diff)
Input: Swap events for ui_redo to favor Shift+Ctrl+Z over Ctrl+Y
That's the most common one we've been using for the general editor, and while the script editor also supports Ctrl+Y, it should have lower priority. In theory this code should make both be supported the same but for some reason the general editor only seems to use the first entry (the script editor does support both).
Diffstat (limited to 'core/input')
-rw-r--r--core/input/input_map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/input/input_map.cpp b/core/input/input_map.cpp
index b31c431ead..029808ebbe 100644
--- a/core/input/input_map.cpp
+++ b/core/input/input_map.cpp
@@ -434,8 +434,8 @@ const OrderedHashMap<String, List<Ref<InputEvent>>> &InputMap::get_builtins() {
default_builtin_cache.insert("ui_undo", inputs);
inputs = List<Ref<InputEvent>>();
- inputs.push_back(InputEventKey::create_reference(KEY_Y | KEY_MASK_CMD));
inputs.push_back(InputEventKey::create_reference(KEY_Z | KEY_MASK_CMD | KEY_MASK_SHIFT));
+ inputs.push_back(InputEventKey::create_reference(KEY_Y | KEY_MASK_CMD));
default_builtin_cache.insert("ui_redo", inputs);
// ///// UI Text Input Shortcuts /////