Skip to content

Commit

Permalink
Added option to open menu
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpigeon committed Jul 3, 2021
1 parent 330c968 commit 52c0850
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,27 @@ export default class MenuBuilder {
const subMenuViewProd: MenuItemConstructorOptions = {
label: 'View',
submenu: [
{
label: 'Reload',
accelerator: 'Command+R',
click: () => {
this.mainWindow.webContents.reload();
},
},
{
label: 'Toggle Full Screen',
accelerator: 'Ctrl+Command+F',
click: () => {
this.mainWindow.setFullScreen(!this.mainWindow.isFullScreen());
},
},
{
label: 'Toggle Developer Tools',
accelerator: 'Alt+Command+I',
click: () => {
this.mainWindow.webContents.toggleDevTools();
},
},
],
};
const subMenuWindow: DarwinMenuItemConstructorOptions = {
Expand Down

0 comments on commit 52c0850

Please sign in to comment.