提交 f60fe952 编写于 作者: B Benjamin Pasero

fix #25190

上级 397937c7
......@@ -1064,11 +1064,11 @@ export class VSCodeMenu {
// the keybinding is not native so we cannot show it as part of the accelerator of
// the menu item. we fallback to a different strategy so that we always display it
else {
const bindingIndex = options.label.indexOf('(');
const bindingIndex = options.label.indexOf('[');
if (bindingIndex >= 0) {
options.label = `${options.label.substr(0, bindingIndex)} (${binding.label})`;
options.label = `${options.label.substr(0, bindingIndex)} [${binding.label}]`;
} else {
options.label = `${options.label} (${binding.label})`;
options.label = `${options.label} [${binding.label}]`;
}
}
}
......
......@@ -95,7 +95,7 @@ export class ContextMenuService implements IContextMenuService {
} else {
const label = keybinding.getLabel();
if (label) {
options.label = `${options.label} (${label})`;
options.label = `${options.label} [${label}]`;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册