1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-21 17:56:06 +08:00

Fixed ctrl+d duplicate

This commit is contained in:
Thor Brigsted 2018-02-03 11:56:20 +01:00
parent 1b2f94607e
commit 57b4287613

View File

@ -165,9 +165,9 @@ namespace XNodeEditor {
isPanning = false;
}
break;
case EventType.KeyDown:
if (e.keyCode == KeyCode.Delete) RemoveSelectedNodes();
else if (e.keyCode == KeyCode.D && e.control) DublicateSelectedNodes();
case EventType.ValidateCommand:
if (e.commandName == "SoftDelete") RemoveSelectedNodes();
else if (e.commandName == "Duplicate") DublicateSelectedNodes();
Repaint();
break;
case EventType.Ignore: