Ugly brackets in the menu (fixes #6413)

This commit is contained in:
Benjamin Pasero
2016-05-20 06:52:28 +02:00
parent bbc1950d34
commit 5f4d8c3653
3 changed files with 3 additions and 3 deletions

View File

@@ -789,7 +789,7 @@ function __separator__(): Electron.MenuItem {
function mnemonicLabel(label: string): string {
if (platform.isMacintosh) {
return label.replace(/&&/g, ''); // no mnemonic support on mac
return label.replace(/\(&&\w\)|&&/g, ''); // no mnemonic support on mac/linux
}
return label.replace(/&&/g, '&');