don't capture keydowns if modifier key is active

This commit is contained in:
Steve Kashishian 2014-02-10 21:45:19 -05:00
parent 34b6b9154d
commit 37519fd6ec

View File

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