Made DEL key an alternative for deleting selected entities
This commit is contained in:
parent
1ba339b3be
commit
ace0b35cbe
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,9 @@ const Listeners = {
|
||||||
case 27: // if esc key is pressed
|
case 27: // if esc key is pressed
|
||||||
JIT.escKeyHandler()
|
JIT.escKeyHandler()
|
||||||
break
|
break
|
||||||
|
case 46: // if DEL is pressed
|
||||||
|
Control.deleteSelected()
|
||||||
|
break
|
||||||
case 65: // if a or A is pressed
|
case 65: // if a or A is pressed
|
||||||
if ((e.ctrlKey || e.metaKey) && onCanvas) {
|
if ((e.ctrlKey || e.metaKey) && onCanvas) {
|
||||||
const nodesCount = Object.keys(Visualize.mGraph.graph.nodes).length
|
const nodesCount = Object.keys(Visualize.mGraph.graph.nodes).length
|
||||||
|
|
Loading…
Reference in a new issue