Skip to content

Commit

Permalink
re-enable null check against menu item accelerators (electron#12449)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere authored and sethlu committed May 3, 2018
1 parent e18995f commit f217607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/browser/api/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit f217607

Please sign in to comment.