[openstreetmap/openstreetmap-website] Fix shift key handling in contextmenu (#1447)

Holger Jeromin notifications at github.com
Sun Feb 19 08:47:15 UTC 2017


At least in Google Chrome `e.shiftKey` is not defined in `mousedown` event here, so the desired effect (skipping contextmenu) is not working. Using `e.originalEvent.shiftKey` now.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/1447

-- Commit Summary --

  * Fix shift key handling in contextmenu

-- File Changes --

    M app/assets/javascripts/index/contextmenu.js (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/1447.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1447.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1447
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170219/ae12db53/attachment.html>


More information about the rails-dev mailing list