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,11 +337,15 @@ namespace XNodeEditor {
|
|||||||
if (e.type == EventType.ExecuteCommand) DuplicateSelectedNodes();
|
if (e.type == EventType.ExecuteCommand) DuplicateSelectedNodes();
|
||||||
e.Use();
|
e.Use();
|
||||||
} else if (e.commandName == "Copy") {
|
} else if (e.commandName == "Copy") {
|
||||||
if (e.type == EventType.ExecuteCommand) CopySelectedNodes();
|
if (!EditorGUIUtility.editingTextField) {
|
||||||
e.Use();
|
if (e.type == EventType.ExecuteCommand) CopySelectedNodes();
|
||||||
|
e.Use();
|
||||||
|
}
|
||||||
} else if (e.commandName == "Paste") {
|
} else if (e.commandName == "Paste") {
|
||||||
if (e.type == EventType.ExecuteCommand) PasteNodes(WindowToGridPosition(lastMousePosition));
|
if (!EditorGUIUtility.editingTextField) {
|
||||||
e.Use();
|
if (e.type == EventType.ExecuteCommand) PasteNodes(WindowToGridPosition(lastMousePosition));
|
||||||
|
e.Use();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Repaint();
|
Repaint();
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user