feat: add keyboard shortcut to quit the app on Windows #1202

Merged
ykris45 merged 11 commits from patch-1 into master 2018-03-30 20:37:31 +02:00
Showing only changes of commit 0a4f78190d - Show all commits

View file

@ -2,6 +2,10 @@ import { app, Menu, shell } from 'electron';
export default () => { export default () => {
const template = [ const template = [
{
label: 'File',
submenu: [{ role: 'quit', accelerator: 'CmdOrCtrl+Q' }],
},
{ {
label: 'Edit', label: 'Edit',
submenu: [ submenu: [
@ -27,11 +31,7 @@ export default () => {
}, },
{ {
role: 'window', role: 'window',
submenu: [ submenu: [{ role: 'minimize' }, { role: 'close' }],
{ role: 'minimize' },
{ role: 'close' },
{ role: 'quit', accelerator: 'CmdOrCtrl+Q' },
],
}, },
{ {
role: 'help', role: 'help',