Merge pull request #2452 from snkashis/modifier_key_bypass

don't capture keydowns if modifier key is active
This commit is contained in:
Vladimir Agafonkin 2014-02-13 01:05:51 +02:00
commit ad661c94e4

View File

@ -125,6 +125,8 @@ L.Map.Keyboard = L.Handler.extend({
},
_onKeyDown: function (e) {
if (e.altKey || e.ctrlKey || e.metaKey) { return; }
var key = e.keyCode,
map = this._map;