test: move MenuItem spec to main process (#19235)
* test: move MenuItem spec to main process * spec: fix errant default accel test * Update menu-item-roles.js * Update api-menu-item-spec.ts
This commit is contained in:
parent
3d2eb8360a
commit
355b307618
3 changed files with 123 additions and 134 deletions
|
@ -82,7 +82,7 @@ const roles = {
|
|||
default: return 'Quit'
|
||||
}
|
||||
},
|
||||
accelerator: isWindows ? null : 'CommandOrControl+Q',
|
||||
accelerator: isWindows ? undefined : 'CommandOrControl+Q',
|
||||
appMethod: 'quit'
|
||||
},
|
||||
redo: {
|
||||
|
@ -251,6 +251,8 @@ const roles = {
|
|||
}
|
||||
}
|
||||
|
||||
exports.roleList = roles
|
||||
|
||||
const canExecuteRole = (role) => {
|
||||
if (!roles.hasOwnProperty(role)) return false
|
||||
if (!isMac) return true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue