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:
commit
a0eaf8aca6
2 changed files with 2 additions and 4 deletions
|
@ -197,9 +197,7 @@ app.once('ready', () => {
|
|||
role: 'front'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
} else {
|
||||
template.unshift({
|
||||
label: 'File',
|
||||
submenu: [
|
||||
|
|
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue