feat: add keyboard shortcut to quit the app on Windows #1202
1 changed files with 5 additions and 5 deletions
|
@ -2,6 +2,10 @@ import { app, Menu, shell } from 'electron';
|
|||
|
||||
export default () => {
|
||||
const template = [
|
||||
{
|
||||
label: 'File',
|
||||
submenu: [{ role: 'quit', accelerator: 'CmdOrCtrl+Q' }],
|
||||
},
|
||||
{
|
||||
label: 'Edit',
|
||||
submenu: [
|
||||
|
@ -27,11 +31,7 @@ export default () => {
|
|||
},
|
||||
{
|
||||
role: 'window',
|
||||
submenu: [
|
||||
{ role: 'minimize' },
|
||||
{ role: 'close' },
|
||||
{ role: 'quit', accelerator: 'CmdOrCtrl+Q' },
|
||||
],
|
||||
submenu: [{ role: 'minimize' }, { role: 'close' }],
|
||||
},
|
||||
{
|
||||
role: 'help',
|
||||
|
|
Loading…
Reference in a new issue