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

Commit e4f5321

Browse files
committed
✨ Allow accessing devTools from binaries
Closes #306
1 parent bdc75d4 commit e4f5321

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/_renderer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,14 @@ window.focusShellTab = (number) => {
453453
const globalShortcut = electron.remote.globalShortcut;
454454
globalShortcut.unregisterAll();
455455

456+
// Open inspector
457+
globalShortcut.register("CommandOrControl+Shift+i", () => {
458+
electron.remote.getCurrentWindow().webContents.toggleDevTools();
459+
});
460+
456461
// Switch tabs
457462
// Next
458463
globalShortcut.register("CommandOrControl+Tab", () => {
459-
console.log("next");
460464
if (window.term[window.currentTerm+1]) {
461465
window.focusShellTab(window.currentTerm+1);
462466
} else if (window.term[window.currentTerm+2]) {

0 commit comments

Comments
 (0)