1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ctrl-Shift-Click on node should add to existing selection

This commit is contained in:
Nick O'Leary 2022-01-03 23:29:42 +00:00
parent bef641609e
commit cb3fcb7bfa
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -3246,7 +3246,9 @@ RED.view = (function() {
// } // }
// } else // } else
if (d3.event.shiftKey) { if (d3.event.shiftKey) {
if (!(d3.event.ctrlKey||d3.event.metaKey)) {
clearSelection(); clearSelection();
}
var clickPosition = (d3.event.offsetX/scaleFactor - mousedown_node.x) var clickPosition = (d3.event.offsetX/scaleFactor - mousedown_node.x)
var edgeDelta = (mousedown_node.w/2) - Math.abs(clickPosition); var edgeDelta = (mousedown_node.w/2) - Math.abs(clickPosition);
var cnodes; var cnodes;