提交 eb3b8ddc 编写于 作者: S Sandeep Somavarapu

Fix #31832

上级 ef4df46f
......@@ -337,6 +337,16 @@ export class KeybindingsEditor extends BaseEditor implements IKeybindingsEditor
DOM.removeClass(this.keybindingsList.getHTMLElement(), 'focused');
this.keybindingFocusContextKey.reset();
}));
this._register(this.keybindingsList.onKeyUp(e => {
const event = new StandardKeyboardEvent(e);
if (event.keyCode === KeyCode.Enter) {
const keybindingEntry = this.activeKeybindingEntry;
if (keybindingEntry) {
this.defineKeybinding(this.activeKeybindingEntry);
}
e.stopPropagation();
}
}));
}
private render(): TPromise<any> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册