projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bdf29f
)
Fix shift key handling in contextmenu
author
Holger Jeromin
<mailgithub@katur.de>
Sun, 19 Feb 2017 08:45:47 +0000
(09:45 +0100)
committer
GitHub
<noreply@github.com>
Sun, 19 Feb 2017 08:45:47 +0000
(09:45 +0100)
app/assets/javascripts/index/contextmenu.js
patch
|
blob
|
history
diff --git
a/app/assets/javascripts/index/contextmenu.js
b/app/assets/javascripts/index/contextmenu.js
index 1e7251ec62a99b6d3f81f749d183dc28ac10de0a..b19c5d34f4f728a1b7b534c094cd577bf5221ece 100644
(file)
--- a/
app/assets/javascripts/index/contextmenu.js
+++ b/
app/assets/javascripts/index/contextmenu.js
@@
-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();
});