From 3172b9dce882e5e62b7349f4b624bd018ac16ce4 Mon Sep 17 00:00:00 2001 From: Hussain Arif Date: Mon, 20 Apr 2020 18:08:53 +0500 Subject: [PATCH] Focus on name text area when OK button is pressed --- CHANGELOG.md | 2 +- src/main/java/org/jabref/gui/groups/GroupDialogView.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b97d1db9c5e..1febbee2f86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -246,7 +246,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve - We added a 'LaTeX citations' tab to the entry editor, to search for citations to the active entry in the LaTeX file directory. It can be disabled in the preferences dialog. - We added an option in preferences to allow for integers in field "edition" when running database in bibtex mode. [#4680](https://github.com/JabRef/jabref/issues/4680) - We added the ability to use negation in export filter layouts. [#5138](https://github.com/JabRef/jabref/pull/5138) --Focus on Name Area instead of 'OK' button whenever user presses 'Add subgroup' +- Focus on Name Area instead of 'OK' button whenever user presses 'Add subgroup' ### Fixed diff --git a/src/main/java/org/jabref/gui/groups/GroupDialogView.java b/src/main/java/org/jabref/gui/groups/GroupDialogView.java index 73cbeb3eba4..d6523a97c45 100644 --- a/src/main/java/org/jabref/gui/groups/GroupDialogView.java +++ b/src/main/java/org/jabref/gui/groups/GroupDialogView.java @@ -97,7 +97,7 @@ public void initialize() { hierarchyText.put(GroupHierarchyType.INDEPENDENT, Localization.lang("Independent")); hierarchyToolTip.put(GroupHierarchyType.INDEPENDENT, Localization.lang("Independent group: When selected, view only this group's entries")); - nameField.textProperty().bindBidirectional(viewModel.nameProperty()); + nameField.textProperty().bindBidirectional(viewModel.nameProperty()); descriptionField.textProperty().bindBidirectional(viewModel.descriptionProperty()); iconField.textProperty().bindBidirectional(viewModel.iconProperty()); colorField.valueProperty().bindBidirectional(viewModel.colorFieldProperty()); @@ -131,7 +131,7 @@ public void initialize() { autoGroupPersonsField.textProperty().bindBidirectional(viewModel.autoGroupPersonsFieldProperty()); texGroupFilePath.textProperty().bindBidirectional(viewModel.texGroupFilePathProperty()); - + validationVisualizer.setDecoration(new IconValidationDecorator()); Platform.runLater(() -> { validationVisualizer.initVisualization(viewModel.nameValidationStatus(), nameField);