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

Try to surpress the system context menu on Ctrl-Click in canvas

This commit is contained in:
Nick O'Leary 2018-01-17 23:14:18 +00:00
parent 6310de0d20
commit 2700f8cdd2
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -81,6 +81,9 @@ RED.view = (function() {
.style("cursor","crosshair")
.on("mousedown", function() {
focusView();
})
.on("contextmenu", function(){
d3.event.preventDefault();
});
var vis = outer
@ -1393,7 +1396,7 @@ RED.view = (function() {
function portMouseUp(d,portType,portIndex) {
var i;
if (mouse_mode === RED.state.QUICK_JOINING) {
if (mouse_mode === RED.state.QUICK_JOINING && drag_lines.length > 0) {
if (drag_lines[0].node===d) {
return
}