diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c84f5424c4..73e2aad2458 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv - We added a different background color to the search bar to indicate when the search syntax is wrong. [#11658](https://github.com/JabRef/jabref/pull/11658) - We added a setting which always adds the literal "Cited on pages" text before each JStyle citation. [#11691](https://github.com/JabRef/jabref/pull/11732) - We added a new plain citation parser that uses LLMs. [#11825](https://github.com/JabRef/jabref/issues/11825) +- By double clicking on a local citation in the Citation Relations Tab you can now jump the the linked entry. [#11955](https://github.com/JabRef/jabref/pull/11955) ### Changed diff --git a/src/main/java/org/jabref/gui/entryeditor/citationrelationtab/CitationRelationsTab.java b/src/main/java/org/jabref/gui/entryeditor/citationrelationtab/CitationRelationsTab.java index 3ab2a167b9c..48403a3d16d 100644 --- a/src/main/java/org/jabref/gui/entryeditor/citationrelationtab/CitationRelationsTab.java +++ b/src/main/java/org/jabref/gui/entryeditor/citationrelationtab/CitationRelationsTab.java @@ -231,11 +231,11 @@ private void styleFetchedListView(CheckListView listView) Button jumpTo = IconTheme.JabRefIcons.LINK.asButton(); jumpTo.setTooltip(new Tooltip(Localization.lang("Jump to entry in library"))); jumpTo.getStyleClass().add("addEntryButton"); - jumpTo.setOnMouseClicked(event -> { - citingTask.cancel(); - citedByTask.cancel(); - libraryTab.showAndEdit(entry.localEntry()); - libraryTab.clearAndSelect(entry.localEntry()); + jumpTo.setOnMouseClicked(event -> jumpToEntry(entry)); + hContainer.setOnMouseClicked(event -> { + if (event.getClickCount() == 2) { + jumpToEntry(entry); + } }); vContainer.getChildren().add(jumpTo); } else { @@ -295,6 +295,13 @@ private void styleFetchedListView(CheckListView listView) listView.setSelectionModel(new NoSelectionModel<>()); } + private void jumpToEntry(CitationRelationItem entry) { + citingTask.cancel(); + citedByTask.cancel(); + libraryTab.showAndEdit(entry.localEntry()); + libraryTab.clearAndSelect(entry.localEntry()); + } + /** * @implNote This code is similar to {@link PreviewWithSourceTab#getSourceString(BibEntry, BibDatabaseMode, FieldPreferences, BibEntryTypesManager)}. */