提交 5f4d8c36 编写于 作者: B Benjamin Pasero

Ugly brackets in the menu (fixes #6413)

上级 bbc1950d
......@@ -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, '&');
......
......@@ -217,7 +217,7 @@ export class TextFileService extends AbstractTextFileService {
private mnemonicLabel(label: string): string {
if (!isWindows) {
return label.replace(/&&/g, ''); // no mnemonic support on mac/linux in buttons yet
return label.replace(/\(&&\w\)|&&/g, ''); // no mnemonic support on mac/linux
}
return label.replace(/&&/g, '&');
......
......@@ -64,7 +64,7 @@ export class MessageService extends WorkbenchMessageService {
private mnemonicLabel(label: string): string {
if (!isWindows) {
return label.replace(/&&/g, ''); // no mnemonic support on mac/linux in buttons yet
return label.replace(/\(&&\w\)|&&/g, ''); // no mnemonic support on mac/linux
}
return label.replace(/&&/g, '&');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册