Compare commits

...

1 Commits

Author SHA1 Message Date
정영민
c9711ef03d Ctrl+D 오브젝트 복제 2025-05-29 10:21:20 +09:00

View File

@@ -422,13 +422,15 @@ namespace Studio.AssetTool
var shortcutTable = new Dictionary<KeyCode, Dictionary<KeyCode, Action>>();
#if UNITY_EDITOR
shortcutTable.Add(KeyCode.LeftShift, new Dictionary<KeyCode, Action>());
shortcutTable[KeyCode.LeftShift].Add(KeyCode.C, SaveItemsToCopy);
shortcutTable[KeyCode.LeftShift].Add(KeyCode.V, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
shortcutTable.Add(KeyCode.LeftControl, new Dictionary<KeyCode, Action>());
//shortcutTable[KeyCode.LeftShift].Add(KeyCode.C, SaveItemsToCopy);
//shortcutTable[KeyCode.LeftShift].Add(KeyCode.V, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
shortcutTable[KeyCode.LeftControl].Add(KeyCode.D, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
#else
shortcutTable.Add(KeyCode.LeftControl, new Dictionary<KeyCode, Action>());
shortcutTable[KeyCode.LeftControl].Add(KeyCode.C, SaveItemsToCopy);
shortcutTable[KeyCode.LeftControl].Add(KeyCode.V, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
//shortcutTable[KeyCode.LeftControl].Add(KeyCode.C, SaveItemsToCopy);
//shortcutTable[KeyCode.LeftControl].Add(KeyCode.V, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
shortcutTable[KeyCode.LeftControl].Add(KeyCode.D, () => CommandInvoker.instance.Invoke(new CopyObjectCommand()));
#endif
var handler = new InputHandler(getKeyActions, downKeyActions, upKeyActions, shortcutTable);