});
map.on("mousedown", function (e) {
- if (e.shiftKey) map.contextmenu.disable();
- }).on("mouseup", function () {
- map.contextmenu.enable();
+ if (e.originalEvent.shiftKey) map.contextmenu.disable();
+ else map.contextmenu.enable();
});
var updateMenu = function updateMenu () {