📝 Cleanup codes
[ci skip]
This commit is contained in:
parent
552102b88d
commit
6e0112bf9f
1 changed files with 2 additions and 12 deletions
|
@ -84,12 +84,7 @@ const template = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Toggle Full Screen',
|
label: 'Toggle Full Screen',
|
||||||
accelerator: (() => {
|
accelerator: process.platform === 'darwin' ? 'Ctrl+Command+F' : 'F11',
|
||||||
if (process.platform === 'darwin')
|
|
||||||
return 'Ctrl+Command+F';
|
|
||||||
else
|
|
||||||
return 'F11';
|
|
||||||
})(),
|
|
||||||
click: (item, focusedWindow) => {
|
click: (item, focusedWindow) => {
|
||||||
if (focusedWindow)
|
if (focusedWindow)
|
||||||
focusedWindow.setFullScreen(!focusedWindow.isFullScreen());
|
focusedWindow.setFullScreen(!focusedWindow.isFullScreen());
|
||||||
|
@ -97,12 +92,7 @@ const template = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Toggle Developer Tools',
|
label: 'Toggle Developer Tools',
|
||||||
accelerator: (() => {
|
accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
|
||||||
if (process.platform === 'darwin')
|
|
||||||
return 'Alt+Command+I';
|
|
||||||
else
|
|
||||||
return 'Ctrl+Shift+I';
|
|
||||||
})(),
|
|
||||||
click: (item, focusedWindow) => {
|
click: (item, focusedWindow) => {
|
||||||
if (focusedWindow)
|
if (focusedWindow)
|
||||||
focusedWindow.webContents.toggleDevTools();
|
focusedWindow.webContents.toggleDevTools();
|
||||||
|
|
Loading…
Reference in a new issue