mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
re-enable null check against menu item accelerators (#12455)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user