Skip to content

Commit

Permalink
fix: revert back menu actions (janhq#2120)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Feb 22, 2024
1 parent 322c834 commit f60d42a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions electron/utils/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,38 @@ const template: (Electron.MenuItemConstructorOptions | Electron.MenuItem)[] = [
}),
},
{ type: 'separator' },
{ role: 'services' },
{ type: 'separator' },
{ role: 'hide' },
{ role: 'hideOthers' },
{ role: 'unhide' },
{ type: 'separator' },
{ role: 'quit' },
],
},
{
label: 'Edit',
submenu: [
{ role: 'undo' },
{ role: 'redo' },
{ type: 'separator' },
{ role: 'cut' },
{ role: 'copy' },
{ role: 'paste' },
...(isMac
? [
{ role: 'pasteAndMatchStyle' },
{ role: 'delete' },
{ role: 'selectAll' },
{ type: 'separator' },
{
label: 'Speech',
submenu: [{ role: 'startSpeaking' }, { role: 'stopSpeaking' }],
},
]
: [{ role: 'delete' }, { type: 'separator' }, { role: 'selectAll' }]),
],
},
{
label: 'View',
submenu: [
Expand Down

0 comments on commit f60d42a

Please sign in to comment.