提交 180a5c6c 编写于 作者: C Christof Marti

Show only first keybinding (fixes #12862)

上级 5b3afc13
......@@ -48,9 +48,9 @@ export function create(container: Builder, keybindingService: IKeybindingService
dl.element('dt', {}, dt => dt.text(entry.text));
dl.element('dd', {}, dd => dd.text(
entry.ids
.map(id => keybindingService.lookupKeybindings(id)
.map(id => keybindingService.lookupKeybindings(id).slice(0, 1)
.map(k => keybindingService.getLabelFor(k))
.join(' or ') || UNBOUND)
.join('') || UNBOUND)
.join(' or ')
));
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册