Changed the DEL key to remove entities instead of delete them
This commit is contained in:
parent
305c3a35bd
commit
96560e837d
1 changed files with 3 additions and 2 deletions
|
@ -34,9 +34,10 @@ const Listeners = {
|
|||
case 46: // if DEL is pressed
|
||||
if(e.target.tagName !== "INPUT" && e.target.tagName !== "TEXTAREA" && (Selected.Nodes.length + Selected.Edges.length) > 0){
|
||||
e.preventDefault()
|
||||
Control.deleteSelected()
|
||||
break
|
||||
Control.removeSelectedNodes()
|
||||
Control.removeSelectedEdges()
|
||||
}
|
||||
break
|
||||
case 65: // if a or A is pressed
|
||||
if (Create.isSwitchingSet && e.ctrlKey || e.metaKey) {
|
||||
Create.metacodeSelectorToggleSelectAll()
|
||||
|
|
Loading…
Add table
Reference in a new issue