Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
fix(debug): cmd+shift+8 to show debug menu
Browse files Browse the repository at this point in the history
mac: command + shift + 8
win: ctrl + shift + 8
  • Loading branch information
adamdbradley committed Nov 14, 2016
1 parent 3de4e9f commit a26d729
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions bin/ion-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,20 +333,18 @@ window.IonicDevServer = {
var key = ev.keyCode || ev.charCode;

if (key == 27) {
// escape key
self.optionsMenu(false);
}
});

document.addEventListener('keydown', function(ev) {
var key = ev.keyCode || ev.charCode;

if (ev.metaKey || ev.ctrlKey) {
// cmd or ctrl key held down

if (key == 56) {
// holding down cmd or ctrl, and 8
self.toggleOptionsMenu();
}
if ((ev.metaKey || ev.ctrlKey) && ev.shiftKey && key == 56) {
// mac: command + shift + 8
// win: ctrl + shift + 8
self.toggleOptionsMenu();
}
});

Expand Down

0 comments on commit a26d729

Please sign in to comment.