Skip to content

Commit

Permalink
Add more macOS menu/shortcuts (#692)
Browse files Browse the repository at this point in the history
* Add macOS menu/shortcuts for hiding and minimizing

* Add macOS menu item/shortcut for full screen
  • Loading branch information
flpcury committed Sep 14, 2021
1 parent 6f36eb6 commit 41310a6
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ function createWindow() {
{
label: app.name,
submenu: [
{ role: 'quit' }
{ role: 'quit' },
{ role: 'hide' },
]
},
{
Expand All @@ -116,7 +117,17 @@ function createWindow() {
{ role: 'copy' },
{ role: 'paste' }
]
}
},
{
label: "View",
submenu: [
{ role: "togglefullscreen" },
]
},
{
label: "Window",
role: 'windowMenu',
},
]));
}

Expand Down

0 comments on commit 41310a6

Please sign in to comment.