Changed the DEL key to remove entities instead of delete them

This commit is contained in:
Robert Best 2017-03-06 16:45:21 +00:00
parent 305c3a35bd
commit 96560e837d

View file

@ -34,9 +34,10 @@ const Listeners = {
case 46: // if DEL is pressed case 46: // if DEL is pressed
if(e.target.tagName !== "INPUT" && e.target.tagName !== "TEXTAREA" && (Selected.Nodes.length + Selected.Edges.length) > 0){ if(e.target.tagName !== "INPUT" && e.target.tagName !== "TEXTAREA" && (Selected.Nodes.length + Selected.Edges.length) > 0){
e.preventDefault() e.preventDefault()
Control.deleteSelected() Control.removeSelectedNodes()
break Control.removeSelectedEdges()
} }
break
case 65: // if a or A is pressed case 65: // if a or A is pressed
if (Create.isSwitchingSet && e.ctrlKey || e.metaKey) { if (Create.isSwitchingSet && e.ctrlKey || e.metaKey) {
Create.metacodeSelectorToggleSelectAll() Create.metacodeSelectorToggleSelectAll()