re-enable null check against menu item accelerators (#12449)
This commit is contained in:
parent
5f7c6ccfe4
commit
a677c22e1f
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ const delegate = {
|
|||
getAcceleratorForCommandId: (menu, id, useDefaultAccelerator) => {
|
||||
const command = menu.commandsMap[id]
|
||||
if (!command) return
|
||||
if (command.accelerator) return command.accelerator
|
||||
if (command.accelerator != null) return command.accelerator
|
||||
if (useDefaultAccelerator) return command.getDefaultRoleAccelerator()
|
||||
},
|
||||
executeCommand: (menu, event, id) => {
|
||||
|
|
Loading…
Reference in a new issue