mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 13:03:42 +01:00
Ugly brackets in the menu (fixes #6413)
This commit is contained in:
@@ -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, '&');
|
||||
|
||||
Reference in New Issue
Block a user