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
1 changed files with 4 additions and 1 deletions

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
}