From 9e4390c2c20d9083ebcda7fad4c3f0986cf03811 Mon Sep 17 00:00:00 2001 From: mulla028 Date: Fri, 29 Nov 2024 10:18:10 -0500 Subject: [PATCH] Added line in setFocusToField() to force opening every tab before selecting one --- src/main/java/org/jabref/gui/entryeditor/EntryEditor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/jabref/gui/entryeditor/EntryEditor.java b/src/main/java/org/jabref/gui/entryeditor/EntryEditor.java index a0282bde9a6..ab1bb640dfe 100644 --- a/src/main/java/org/jabref/gui/entryeditor/EntryEditor.java +++ b/src/main/java/org/jabref/gui/entryeditor/EntryEditor.java @@ -468,6 +468,7 @@ public void setFocusToField(Field field) { Field actualField = field; boolean fieldFound = false; for (Tab tab : tabbed.getTabs()) { + tabbed.getSelectionModel().select(tab); if ((tab instanceof FieldsEditorTab fieldsEditorTab) && fieldsEditorTab.getShownFields().contains(actualField)) { tabbed.getSelectionModel().select(tab);