don't capture keydowns if modifier key is active
This commit is contained in:
parent
34b6b9154d
commit
37519fd6ec
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user