Fix shift key handling in contextmenu
This commit is contained in:
parent
0bdf29f10b
commit
d716e4095b
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ OSM.initializeContextMenu = function (map) {
|
|||
});
|
||||
|
||||
map.on("mousedown", function (e) {
|
||||
if (e.shiftKey) map.contextmenu.disable();
|
||||
if (e.originalEvent.shiftKey) map.contextmenu.disable();
|
||||
}).on("mouseup", function () {
|
||||
map.contextmenu.enable();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue