ELECTRON-1003: fix menuitems with roles default (#546)

This commit is contained in:
VICTOR RAPHAEL BRAGA DE SALES MASCARENHAS 2019-01-14 10:04:19 -02:00 committed by Vishwas Shashidhar
parent a206b567c2
commit 0d1618a36e

View File

@ -528,8 +528,8 @@ function buildMenuItem(role, label) {
}
if (isWindowsOS) {
return label ? { role: role, label: label, accelerator: windowsAccelerator[role] || '' }
: { role: role, accelerator: windowsAccelerator[role] || '' }
return label ? { role: role, label: label, accelerator: windowsAccelerator[role] || '', registerAccelerator: true }
: { role: role, accelerator: windowsAccelerator[role] || '', registerAccelerator: true }
}
return label ? { role: role, label: label } : { role: role }