Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
✨ Allow accessing devTools from binaries
Browse files Browse the repository at this point in the history
Closes #306
  • Loading branch information
GitSquared committed Nov 28, 2018
1 parent bdc75d4 commit e4f5321
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,14 @@ window.focusShellTab = (number) => {
const globalShortcut = electron.remote.globalShortcut;
globalShortcut.unregisterAll();

// Open inspector
globalShortcut.register("CommandOrControl+Shift+i", () => {
electron.remote.getCurrentWindow().webContents.toggleDevTools();
});

// Switch tabs
// Next
globalShortcut.register("CommandOrControl+Tab", () => {
console.log("next");
if (window.term[window.currentTerm+1]) {
window.focusShellTab(window.currentTerm+1);
} else if (window.term[window.currentTerm+2]) {
Expand Down

0 comments on commit e4f5321

Please sign in to comment.