Skip to content

Commit

Permalink
Add hide menu option on mac (graphql#969)
Browse files Browse the repository at this point in the history
* Add hide menu option on mac

* Add hide others menu option on mac

* Add show all menu option on mac
  • Loading branch information
lekterable authored and huv1k committed Feb 23, 2019
1 parent 1b22f4a commit 1763cce
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/graphql-playground-electron/src/main/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,21 @@ export const buildTemplate = (
click: () => send('Tab', 'Settings'),
},
{ type: 'separator' },
{
label: 'Hide GraphQL Playground',
accelerator: 'Cmd+H',
role: 'hide',
},
{
label: 'Hide Others',
accelerator: 'Option+Cmd+H',
role: 'hideOthers',
},
{
label: 'Show All',
role: 'unhide',
},
{ type: 'separator', visible: process.platform === 'darwin' },
{
label: 'Quit',
accelerator: 'CmdOrCtrl+Q',
Expand Down

0 comments on commit 1763cce

Please sign in to comment.