From ace0b35cbe1eed4f168adc1afefbf7b685c2d715 Mon Sep 17 00:00:00 2001 From: Robert Best Date: Mon, 12 Dec 2016 04:54:49 +0000 Subject: [PATCH] Made DEL key an alternative for deleting selected entities --- frontend/src/Metamaps/Listeners.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/Metamaps/Listeners.js b/frontend/src/Metamaps/Listeners.js index 756227b1..041d2f08 100644 --- a/frontend/src/Metamaps/Listeners.js +++ b/frontend/src/Metamaps/Listeners.js @@ -30,6 +30,9 @@ const Listeners = { case 27: // if esc key is pressed JIT.escKeyHandler() break + case 46: // if DEL is pressed + Control.deleteSelected() + break case 65: // if a or A is pressed if ((e.ctrlKey || e.metaKey) && onCanvas) { const nodesCount = Object.keys(Visualize.mGraph.graph.nodes).length