From cb3fcb7bfa53a45c6a4459b2faf4d31a51e8440a Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 3 Jan 2022 23:29:42 +0000 Subject: [PATCH] Ctrl-Shift-Click on node should add to existing selection --- .../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 5b0c288ff..653dea0a4 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 @@ -3246,7 +3246,9 @@ RED.view = (function() { // } // } else if (d3.event.shiftKey) { - clearSelection(); + if (!(d3.event.ctrlKey||d3.event.metaKey)) { + clearSelection(); + } var clickPosition = (d3.event.offsetX/scaleFactor - mousedown_node.x) var edgeDelta = (mousedown_node.w/2) - Math.abs(clickPosition); var cnodes;