Skip to content

Commit

Permalink
'Name' textfield on focus instead of 'OK' button when user clicks on …
Browse files Browse the repository at this point in the history
…'Add subgroup' option (#6330)

* Name field now in focus whenever 'add subgroup' button selected

* Updated: Focuson Name Area instead of 'OK' button whenever user presses 'Add subgroup'

* Focus on name text area whenever user clicks on Add Subgroup

* Focus on name text area when OK button is pressed

* Fixed changelog.md

Co-authored-by: Hussain Arif <hussainarifkl@gmail.com>
  • Loading branch information
Hussain Arif and HussainArif12 authored Apr 21, 2020
1 parent 58ef8bc commit dc1e339
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +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'. [#6307](https://github.com/JabRef/jabref/issues/6307)

### Fixed

Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/jabref/gui/groups/GroupDialogView.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public void initialize() {
validationVisualizer.initVisualization(viewModel.keywordRegexValidationStatus(), keywordGroupSearchTerm);
validationVisualizer.initVisualization(viewModel.keywordSearchTermEmptyValidationStatus(), keywordGroupSearchTerm);
validationVisualizer.initVisualization(viewModel.keywordFieldEmptyValidationStatus(), keywordGroupSearchField);
nameField.requestFocus();
});

// Binding to the button throws a NPE, since it doesn't exist yet. Working around.
Expand Down

0 comments on commit dc1e339

Please sign in to comment.