Skip to content

Commit

Permalink
Merge pull request microsoft#128362 from usjpin/hide-hover-while-typing
Browse files Browse the repository at this point in the history
Hide activity bar hover while typing
  • Loading branch information
Tyriar authored Jul 13, 2021
2 parents 0f37155 + ad02671 commit bd22520
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vs/workbench/services/hover/browser/hoverService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export class HoverService implements IHoverService {
} else {
hoverDisposables.add(addDisposableListener(options.target, EventType.CLICK, () => this.hideHover()));
}
const focusedElement = <HTMLElement | null>document.activeElement;
if (focusedElement) {
hoverDisposables.add(addDisposableListener(focusedElement, EventType.KEY_DOWN, () => this.hideHover()));
}

if ('IntersectionObserver' in window) {
const observer = new IntersectionObserver(e => this._intersectionChange(e, hover), { threshold: 0 });
Expand Down

0 comments on commit bd22520

Please sign in to comment.