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

Only edit nodes on dbl click on primary button with no modifiers

This commit is contained in:
Nick O'Leary 2018-06-12 15:34:08 +01:00
parent 2a122ed283
commit 68779caa2e
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -1697,7 +1697,9 @@ RED.view = (function() {
clickElapsed = now-clickTime;
clickTime = now;
dblClickPrimed = (lastClickNode == mousedown_node);
dblClickPrimed = (lastClickNode == mousedown_node &&
d3.event.buttons === 1 &&
!d3.event.shiftKey && !d3.event.metaKey && !d3.event.altKey && !d3.event.ctrlKey);
lastClickNode = mousedown_node;
var i;