提交 c7ee0f80 编写于 作者: R Rob Lourens

Settings editor - hook up down arrow listener

上级 1269a996
......@@ -176,12 +176,12 @@ export class SettingsEditor2 extends BaseEditor {
focusKey: this.searchFocusContextKey
}));
this._register(this.searchWidget.onDidChange(() => this.onSearchInputChanged()));
// this._register(DOM.addStandardDisposableListener(this.searchWidget.domNode, 'keydown', e => {
// if (e.keyCode === KeyCode.DownArrow) {
// this.settingsList.focusFirst();
// this.settingsList.domFocus();
// }
// }));
this._register(DOM.addStandardDisposableListener(this.searchWidget.domNode, 'keydown', e => {
if (e.keyCode === KeyCode.DownArrow) {
this.settingsTree.focusFirst();
this.settingsTree.domFocus();
}
}));
const headerControlsContainer = DOM.append(this.headerContainer, $('.settings-header-controls'));
const targetWidgetContainer = DOM.append(headerControlsContainer, $('.settings-target-container'));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册