I need control delete for particular shape not for diagram area. please find my code.
gradBorderIndicatorTopLeft =
$$(go.Node, “Spot”, new go.Binding(“zOrder”), { zOrder: 0 }, { copyable: false },
$$(go.Shape, “Rectangle”,
{
width: systemWidth,
height: systemHeight,
margin: 0,
background: “white”,
fill: null
},
new go.Binding(“width”, “width”)
,new go.Binding(“height”, “height”)
));
Could you please be more descriptive for what you want to accomplish? Did you want to allow users to delete this Node only by control-DELETE, rather than by the normal unmodified DELETE key?
if the user press delete key or control -delete key . The Rectangle shape should not be delete.
it is working. Thanks for your response
jhardy
Split this topic
March 20, 2019, 6:03pm
6
A post was split to a new topic: Prevent deleting a node