Merge pull request #6383 from electron/quit-menu-on-linux

Use Ctrl+Q as default accelerator for quit role on Linux
This commit is contained in:
Cheng Zhao 2016-07-08 09:32:07 +09:00 committed by GitHub
commit a0eaf8aca6
2 changed files with 2 additions and 4 deletions

View file

@ -197,9 +197,7 @@ app.once('ready', () => {
role: 'front'
}
]
}
if (process.platform === 'win32') {
} else {
template.unshift({
label: 'File',
submenu: [

View file

@ -64,7 +64,7 @@ const roles = {
default: return 'Quit'
}
},
accelerator: process.platform === 'win32' ? null : 'Command+Q',
accelerator: process.platform === 'win32' ? null : 'CommandOrControl+Q',
appMethod: 'quit'
},
redo: {