提交 603bf383 编写于 作者: R Rob Lourens

Clear lastFocusedSettingElement when focus moves to setting search

上级 976e6bc8
......@@ -196,6 +196,8 @@ export class SuggestEnabledInput extends Widget implements IThemable {
}));
}
public get onFocus(): Event<void> { return this.inputWidget.onDidFocusEditorText; }
public setValue(val: string) {
val = val.replace(/\s/g, ' ');
const fullRange = new Range(1, 1, 1, this.getValue().length + 1);
......
......@@ -370,6 +370,10 @@ export class SettingsEditor2 extends BaseEditor {
})
);
this._register(this.searchWidget.onFocus(() => {
this.lastFocusedSettingElement = '';
}));
this._register(attachSuggestEnabledInputBoxStyler(this.searchWidget, this.themeService, {
inputBorder: settingsTextInputBorder
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册