diff --git a/org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/hover/FocusableBrowserInformationControl.java b/org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/hover/FocusableBrowserInformationControl.java index bf6e43a84..669574125 100644 --- a/org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/hover/FocusableBrowserInformationControl.java +++ b/org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/hover/FocusableBrowserInformationControl.java @@ -91,6 +91,7 @@ protected void createContent(Composite parent) { b.addProgressListener( ProgressListener.completedAdapter(event -> updateBrowserSize((Browser) event.getSource()))); b.setJavascriptEnabled(true); + this.addLocationListener(HYPER_LINK_LISTENER); } private void updateBrowserSize(final Browser browser) { @@ -268,7 +269,6 @@ private static void appendAsHexString(StringBuilder buffer, int intValue) { return parent -> { if (BrowserInformationControl.isAvailable(parent)) { final var res = new FocusableBrowserInformationControl(parent, JFaceResources.DEFAULT_FONT, true); - res.addLocationListener(HYPER_LINK_LISTENER); return res; } else { return new DefaultInformationControl(parent);