Skip to content

Commit

Permalink
Keyboard: allow Ctrl+shift+I shortcut
Browse files Browse the repository at this point in the history
Signed-off-by: Méven Car <[email protected]>
Change-Id: Ic57c7f0825522b78f33f23fcebba4b4f8d9ba15b
  • Loading branch information
meven committed Nov 6, 2024
1 parent ebc753b commit 4ee867b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions browser/src/map/handler/Map.Keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,11 @@ L.Map.Keyboard = L.Handler.extend({
return true;
}

// Control + Shift + I, open browser developper tools
if (this._isCtrlKey(e) && e.shiftKey && e.keyCode === this.keyCodes.I) {
return true;
}

if (e.keyCode !== this.keyCodes.C[DEFAULT] && e.keyCode !== this.keyCodes.V[DEFAULT] && e.keyCode !== this.keyCodes.X[DEFAULT] &&
/* Safari */ e.keyCode !== this.keyCodes.C[MAC] && e.keyCode !== this.keyCodes.V[MAC] && e.keyCode !== this.keyCodes.X[MAC]) {
// not copy or paste
Expand Down

0 comments on commit 4ee867b

Please sign in to comment.