mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user