From 15345b87f623dee89c10b0cbe2908416d288a53a Mon Sep 17 00:00:00 2001 From: Dennis Ushakov Date: Fri, 23 Mar 2018 16:12:19 +0300 Subject: [PATCH] allow selection in unfocused component --- .../codeInsight/documentation/DocumentationComponent.java | 1 + 1 file changed, 1 insertion(+) 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 64ce16e561fe..0a688dcc14ec 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/documentation/DocumentationComponent.java @@ -328,6 +328,7 @@ public class DocumentationComponent extends JPanel implements Disposable, DataPr // Note: Making the caret visible is merely for convenience myEditorPane.getCaret().setVisible(true); } + myEditorPane.getCaret().setSelectionVisible(true); myEditorPane.setBackground(EditorColorsUtil.getGlobalOrDefaultColor(COLOR_KEY)); HTMLEditorKit editorKit = new UIUtil.JBHtmlEditorKit(true) { @Override