From af949c62c2bf16d875c5331f8d7cfab572cf955d Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 12 Jan 2022 17:24:25 +0000 Subject: [PATCH] Allow 'escape' to cancel wire-slicing --- .../@node-red/editor-client/src/js/ui/view.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js index 90ed7f901..ce55c6acb 100755 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/view.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/view.js @@ -1959,6 +1959,16 @@ RED.view = (function() { clearSelection(); RED.history.pop(); mouse_mode = 0; + } else if (mouse_mode === RED.state.SLICING) { + if (slicePath) { + slicePath.remove(); + slicePath = null; + resetMouseVars() + } + clearSelection(); + } else if (lasso) { + lasso.remove(); + lasso = null; } else if (activeGroup) { exitActiveGroup() } else {