Hi Jim
Thanks for using Syncfusion products.
Please note that by default when we edit the node’s label and press the delete key, the node will not be deleted. However we suggest you to use label’s “mode” property to identify whether the label is in edit mode or view mode. Please refer the online UG documentation link for more details. Please refer the code snippet below.
UGDocumentationLink:
http://help.syncfusion.com/ug/js/Documents/label.htmCode snippet: $(window).keydown(function (e) {
var diagram = $("#DiagramContent").ejDiagram("instance");
var node = diagram.model.selectedItems.children[0];
if (node && node.labels[0]) {
//identify whether label is in edit mode
if (ej.datavisualization.Diagram.LabelEditMode.Edit == "edit") {
alert();
}
//identify whether label is in view mode
if (ej.datavisualization.Diagram.LabelEditMode.View == "view") {
alert();
}
}
});
Please let me know if any concerns.
Regards,
Shyam G