Skip to content

Commit

Permalink
Fix hyperlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
ThexXTURBOXx committed Apr 6, 2022
1 parent 55dc661 commit 9c6f880
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>us.deathmarine</groupId>
<artifactId>luyten</artifactId>
<version>0.8.0</version>
<version>0.8.1</version>

<properties>
<!-- Project settings -->
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/us/deathmarine/luyten/OpenFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ public OpenFile(String name, String path, Theme theme, final MainWindow mainWind

textArea.setHyperlinksEnabled(true);
textArea.setLinkScanningMask(Keymap.ctrlDownModifier());
textArea.addHyperlinkListener(e -> {
// Empty Hyperlink listener as a workaround
});

textArea.setLinkGenerator((textArea, offs) -> {
final String uniqueStr = getUniqueStrForOffset(offs);
Expand Down

0 comments on commit 9c6f880

Please sign in to comment.