From 12cc660d7d4fccf1649c504ce795ec6bf7aad148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 22 Feb 2021 15:04:09 +0100 Subject: 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). --- core/input/input_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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>> &InputMap::get_builtins() { default_builtin_cache.insert("ui_undo", inputs); inputs = List>(); - 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 ///// -- cgit v1.2.3