diff options
Diffstat (limited to 'src/vs/workbench/parts/search/browser/searchViewlet.ts')
-rw-r--r-- | src/vs/workbench/parts/search/browser/searchViewlet.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vs/workbench/parts/search/browser/searchViewlet.ts b/src/vs/workbench/parts/search/browser/searchViewlet.ts index 48fd64b555f..05c2a2c4389 100644 --- a/src/vs/workbench/parts/search/browser/searchViewlet.ts +++ b/src/vs/workbench/parts/search/browser/searchViewlet.ts @@ -524,7 +524,7 @@ export class SearchViewlet extends Viewlet { } })); - this.toUnbind.push(this.tree.addListener('focus', (e: IFocusEvent) => { + this.toUnbind.push(this.tree.onDidChangeFocus((e: IFocusEvent) => { const focus = e.focus; this.firstMatchFocused.set(this.tree.getNavigator().first() === focus); this.fileMatchOrMatchFocused.set(true); @@ -533,7 +533,7 @@ export class SearchViewlet extends Viewlet { this.matchFocused.set(focus instanceof Match); })); - this.toUnbind.push(this.tree.onDOMBlur(e => { + this.toUnbind.push(this.tree.onDidBlur(e => { this.firstMatchFocused.reset(); this.fileMatchOrMatchFocused.reset(); this.fileMatchFocused.reset(); |