diff --git a/loleaflet/src/control/Control.LokDialog.js b/loleaflet/src/control/Control.LokDialog.js index 6dd227724..0b3c48ec1 100644 --- a/loleaflet/src/control/Control.LokDialog.js +++ b/loleaflet/src/control/Control.LokDialog.js @@ -192,6 +192,8 @@ L.Control.LokDialog = L.Control.extend({ dialogCanvas.contentEditable = true; dialogCanvas.id = strDlgId + '-canvas'; + L.DomEvent.on(dialogCanvas, 'contextmenu', L.DomEvent.preventDefault); + var that = this; $(dialogContainer).dialog({ width: width,