1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 09:16:01 +08:00

OSX does not dispatch SoftDelete (tested on mbp no external keyboard), only Delete.

This commit is contained in:
Simon Rodriguez 2018-09-27 21:54:10 +02:00
parent 88d23a07f6
commit 58d32bfd85

View File

@ -279,6 +279,7 @@ namespace XNodeEditor {
break; break;
case EventType.ValidateCommand: case EventType.ValidateCommand:
if (e.commandName == "SoftDelete") RemoveSelectedNodes(); if (e.commandName == "SoftDelete") RemoveSelectedNodes();
else if (SystemInfo.operatingSystemFamily == OperatingSystemFamily.MacOSX && e.commandName == "Delete") RemoveSelectedNodes();
else if (e.commandName == "Duplicate") DublicateSelectedNodes(); else if (e.commandName == "Duplicate") DublicateSelectedNodes();
Repaint(); Repaint();
break; break;