Skip to content

Commit

Permalink
Input: Swap events for ui_redo to favor Shift+Ctrl+Z over Ctrl+Y
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
akien-mga committed Feb 22, 2021
1 parent 8c5d477 commit 12cc660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/input/input_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 /////
Expand Down

0 comments on commit 12cc660

Please sign in to comment.