瀏覽代碼

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).
Rémi Verschelde 4 年之前
父節點
當前提交
12cc660d7d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/input/input_map.cpp

+ 1 - 1
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 /////