From 8e7efd98b2c8ac2b387808dbf2f0c8ddd03b4858 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 26 Apr 2021 16:48:21 +0100 Subject: [PATCH] Don't let 'escape' whilst moving nodes interrupt things Fixes #2960 --- .../node_modules/@node-red/editor-client/src/js/ui/view.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 e19387a1e..bffc6fd85 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 @@ -1751,7 +1751,6 @@ RED.view = (function() { } } if (mouse_mode == RED.state.IMPORT_DRAGGING) { - RED.keyboard.remove("escape"); updateActiveNodes(); RED.nodes.dirty(true); } @@ -1786,6 +1785,9 @@ RED.view = (function() { } function selectNone() { + if (mouse_mode === RED.state.MOVING || mouse_mode === RED.state.MOVING_ACTIVE) { + return; + } if (mouse_mode === RED.state.IMPORT_DRAGGING) { clearSelection(); RED.history.pop();