Merge pull request #2452 from snkashis/modifier_key_bypass
don't capture keydowns if modifier key is active
This commit is contained in:
commit
ad661c94e4
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user