Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv

### Fixed

- We fixed an issue where "Specify Bib(La)TeX" tab was not focused when Bib(La)TeX was in the clipboard [#13597](https://github.com/JabRef/jabref/issues/13597).
- We fixed dark mode of BibTeX Source dialog in Citation Relations tab. [#13599](https://github.com/JabRef/jabref/issues/13599)
- We fixed an issue where the LibreOffice integration did not support citation keys containing Unicode characters. [#13301](https://github.com/JabRef/jabref/issues/13301)
- We fixed an issue where the "Search ShortScience" action did not convert LaTeX-formatted titles to Unicode.[#13418](https://github.com/JabRef/jabref/issues/13418)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
import jakarta.inject.Inject;

public class NewEntryView extends BaseDialog<BibEntry> {
private static final String BIBTEX_REGEX = "^@([A-Za-z]+)\\{,";
private static final String LINE_BREAK = "\n";

private NewEntryViewModel viewModel;

private final NewEntryDialogTab initialApproach;
Expand Down Expand Up @@ -164,6 +167,8 @@ private void finalizeTabs() {
approach = NewEntryDialogTab.ENTER_IDENTIFIER;
interpretText.setText(clipboardText);
interpretText.selectAll();
} else if (clipboardText.split(LINE_BREAK)[0].matches(BIBTEX_REGEX)) {
approach = NewEntryDialogTab.SPECIFY_BIBTEX;
} else {
approach = preferences.getLatestApproach();
}
Expand Down Expand Up @@ -288,7 +293,7 @@ private void initializeLookupIdentifier() {
Tooltip.uninstall(idText, idTextTooltip);
}
});

idText.setText(ClipBoardManager.getContents().trim());
idText.selectAll();

Expand Down