Made DEL key an alternative for deleting selected entities

This commit is contained in:
Robert Best 2016-12-12 04:54:49 +00:00
parent 1ba339b3be
commit ace0b35cbe

View file

@ -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