提交 f067a979 编写于 作者: P Pine Wu

Fix #77452

上级 479577f4
......@@ -229,13 +229,19 @@ export class ListSettingWidget extends Disposable {
this._register(DOM.addStandardDisposableListener(this.listElement, 'keydown', (e: KeyboardEvent) => {
if (e.keyCode === KeyCode.UpArrow) {
const selectedIndex = this.model.getSelected();
this.model.selectPrevious();
this.renderList();
if (this.model.getSelected() !== selectedIndex) {
this.renderList();
}
e.preventDefault();
e.stopPropagation();
} else if (e.keyCode === KeyCode.DownArrow) {
const selectedIndex = this.model.getSelected();
this.model.selectNext();
this.renderList();
if (this.model.getSelected() !== selectedIndex) {
this.renderList();
}
e.preventDefault();
e.stopPropagation();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册