From 2c0e53421747629c78dcd18f82666e9eae366b4a Mon Sep 17 00:00:00 2001 From: isidor Date: Fri, 7 Feb 2020 11:57:27 +0100 Subject: [PATCH] debug: only focus back the editor if hover had focus fixes #90167 --- src/vs/workbench/contrib/debug/browser/debugHover.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/debug/browser/debugHover.ts b/src/vs/workbench/contrib/debug/browser/debugHover.ts index c45488e0464..323c3be37c8 100644 --- a/src/vs/workbench/contrib/debug/browser/debugHover.ts +++ b/src/vs/workbench/contrib/debug/browser/debugHover.ts @@ -273,11 +273,13 @@ export class DebugHoverWidget implements IContentWidget { return; } + if (dom.isAncestor(document.activeElement, this.domNode)) { + this.editor.focus(); + } this._isVisible = false; this.editor.deltaDecorations(this.highlightDecorations, []); this.highlightDecorations = []; this.editor.layoutContentWidget(this); - this.editor.focus(); } getPosition(): IContentWidgetPosition | null { -- GitLab