We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d43ea29 commit 637a9feCopy full SHA for 637a9fe
electron_app/src/windows/menu.js
@@ -65,6 +65,20 @@ const template = [
65
label: 'Close',
66
accelerator: 'CmdOrCtrl+W',
67
role: 'close'
68
+ },
69
+ {
70
+ label: 'Developer',
71
+ type: 'submenu',
72
+ submenu: [
73
74
+ label: 'Toggle Developer Tools',
75
+ accelerator:
76
+ process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
77
+ click(item, focusedWindow) {
78
+ if (focusedWindow) focusedWindow.webContents.toggleDevTools();
79
+ }
80
81
+ ]
82
}
83
]
84
@@ -120,7 +134,7 @@ if (process.platform === 'darwin') {
120
134
121
135
});
122
136
// Window menu.
123
- template[2].submenu.push(
137
+ template[3].submenu.push(
124
138
{
125
139
type: 'separator'
126
140
},
0 commit comments