From 0feb68c7f0331cc73168c19894b65b274117d8d3 Mon Sep 17 00:00:00 2001 From: Dmitry Batrak Date: Mon, 3 Dec 2018 14:56:43 +0300 Subject: [PATCH] IDEA-201079 QuickDoc popup is not focused on the second "Ctrl+Q" if it was opened from autocomplete or Project View --- .../codeInsight/documentation/DocumentationComponent.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java b/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java index eaf66b3b3538..3cde92b7c98c 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java @@ -844,6 +844,9 @@ public class DocumentationComponent extends JPanel implements Disposable, DataPr PopupPositionManager.positionPopupInBestPosition(myHint, myManager.getEditor(), dataContext, PopupPositionManager.Position.RIGHT, PopupPositionManager.Position.LEFT); + Window window = myHint.getPopupWindow(); + if (window != null) window.setFocusableWindowState(true); + if (myHint.getDimensionServiceKey() == null) { registerSizeTracker(); }