fix: toggleDevTools menu role closes devtools window (#29922)
This commit is contained in:
parent
c0e72bd335
commit
888ac65c72
1 changed files with 4 additions and 1 deletions
|
@ -143,7 +143,10 @@ export const roleList: Record<RoleId, Role> = {
|
|||
label: 'Toggle Developer Tools',
|
||||
accelerator: isMac ? 'Alt+Command+I' : 'Ctrl+Shift+I',
|
||||
nonNativeMacOSRole: true,
|
||||
windowMethod: w => w.webContents.toggleDevTools()
|
||||
webContentsMethod: wc => {
|
||||
const bw = wc.getOwnerBrowserWindow();
|
||||
if (bw) bw.webContents.toggleDevTools();
|
||||
}
|
||||
},
|
||||
togglefullscreen: {
|
||||
label: 'Toggle Full Screen',
|
||||
|
|
Loading…
Reference in a new issue