Skip to content

Commit fb7adfe

Browse files
Kummallinenrubenporras
authored andcommitted
fix: Move location listener in createPartControl
This lets links open even when the unfocused hover is clicked Fixes: #1509
1 parent 434405d commit fb7adfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

org.eclipse.lsp4e/src/org/eclipse/lsp4e/operations/hover/FocusableBrowserInformationControl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ protected void createContent(Composite parent) {
9191
b.addProgressListener(
9292
ProgressListener.completedAdapter(event -> updateBrowserSize((Browser) event.getSource())));
9393
b.setJavascriptEnabled(true);
94+
this.addLocationListener(HYPER_LINK_LISTENER);
9495
}
9596

9697
private void updateBrowserSize(final Browser browser) {
@@ -268,7 +269,6 @@ private static void appendAsHexString(StringBuilder buffer, int intValue) {
268269
return parent -> {
269270
if (BrowserInformationControl.isAvailable(parent)) {
270271
final var res = new FocusableBrowserInformationControl(parent, JFaceResources.DEFAULT_FONT, true);
271-
res.addLocationListener(HYPER_LINK_LISTENER);
272272
return res;
273273
} else {
274274
return new DefaultInformationControl(parent);

0 commit comments

Comments
 (0)