mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 01:06:01 +08:00
Merge pull request #309 from IIzzaya/master
[FIX] Copy & Paste in node's TextField
This commit is contained in:
commit
5b42d2caeb
@ -337,12 +337,16 @@ namespace XNodeEditor {
|
||||
if (e.type == EventType.ExecuteCommand) DuplicateSelectedNodes();
|
||||
e.Use();
|
||||
} else if (e.commandName == "Copy") {
|
||||
if (!EditorGUIUtility.editingTextField) {
|
||||
if (e.type == EventType.ExecuteCommand) CopySelectedNodes();
|
||||
e.Use();
|
||||
}
|
||||
} else if (e.commandName == "Paste") {
|
||||
if (!EditorGUIUtility.editingTextField) {
|
||||
if (e.type == EventType.ExecuteCommand) PasteNodes(WindowToGridPosition(lastMousePosition));
|
||||
e.Use();
|
||||
}
|
||||
}
|
||||
Repaint();
|
||||
break;
|
||||
case EventType.Ignore:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user