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:
parent
6310de0d20
commit
2700f8cdd2
@ -81,6 +81,9 @@ RED.view = (function() {
|
|||||||
.style("cursor","crosshair")
|
.style("cursor","crosshair")
|
||||||
.on("mousedown", function() {
|
.on("mousedown", function() {
|
||||||
focusView();
|
focusView();
|
||||||
|
})
|
||||||
|
.on("contextmenu", function(){
|
||||||
|
d3.event.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
var vis = outer
|
var vis = outer
|
||||||
@ -1393,7 +1396,7 @@ RED.view = (function() {
|
|||||||
|
|
||||||
function portMouseUp(d,portType,portIndex) {
|
function portMouseUp(d,portType,portIndex) {
|
||||||
var i;
|
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) {
|
if (drag_lines[0].node===d) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user