Merge pull request #46316 from akien-mga/input-ui_redo-swap-order

Input: Swap events for ui_redo to favor Shift+Ctrl+Z over Ctrl+Y
This commit is contained in:
Rémi Verschelde 2021-02-23 08:10:37 +01:00 committed by GitHub
commit e254715e79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 /////