Pressing TAB in last field in entry editor moves focus to the next tab's first field #13870
Conversation
…ves focus to the next tab's field
# Conflicts: # jabgui/src/main/java/org/jabref/gui/entryeditor/EntryEditor.java # jabgui/src/main/java/org/jabref/gui/fieldeditors/EditorTextField.java
…ves focus to the next tab's field
|
|
||
| protected TextInputControl createTextInputControl() { | ||
| return isMultiLine ? new EditorTextArea() : new EditorTextField(); | ||
| protected TextInputControl createTextInputControl(Field field) { |
There was a problem hiding this comment.
Method lacks @nonnull annotation for the field parameter. When using nullable parameters, JSpecify annotations should be used to clearly indicate nullability constraints.
…es focus to the next tab's field
Co-authored-by: Carl Christian Snethlage <50491877+calixtus@users.noreply.github.com>
|
@calixtus auto merge check is failing, due to some automayion script issue, and due to that I cant merge |
The merge-base changed after approval.
3660ea5 to
236277c
Compare
|
Follow-up (in a new contribution as soon as this is merged): Have Shift+Tab working - jumping from the first field of a tab to the last field of the previous tab 😅. Sorry for not writing this into the issue description. |
|
@trag-bot didn't find any issues in the code! ✅✨ |
1 similar comment
|
@trag-bot didn't find any issues in the code! ✅✨ |
Pull Request is not mergeable
|
We somewhat prematurely integrated your PR. I'm sorry. When working with it, we encountered some problems there needs to be put some more work into your PR. Just reopen another PR with your branch. Problems I encountered:
|
|
Next step: re-open a new PR. |
* upstream/main: Add new check for format (#13909) Consistent casing in fieldnames (#13867) Revert "Pressing TAB in last field in entry editor moves focus to the next ta…" (#13912) Fix YAML Fix on-pr-opened-updated.yml syntax Pressing TAB in last field in entry editor moves focus to the next tab's first field (#13870) Modularize JabSrv (#13908) New translations jabref_en.properties (Italian) (#13907) Remove wrong `assert` statement (#13906) Add .git-blame-ignore-revs (#13884) Do not show transprot info messages (#13904) Pubmed api key support (#13899) Fix warnings for native access Fix automerge workflow (#13903) Add comment on issue on binary (#13902) Have checkstyle and VCS configuration distributed (#13900) Add unknown field to lsp consistency check (#13880) Put config for general tab if missing (#13901) Fix autosave manager exception on shutdown (#13882)
Closes #11937
Description
Pressing TAB on the last field of a tab now correctly moves the focus to the first field of the next tab in the EntryEditor.
The navigation is limited to fields within the EntryEditor and does not move focus to unrelated UI components outside the editor.
Added static helper methods in EditorTextField to manage the TAB navigation logic.
All TextField instances within SimpleEditor, CitationKeyEditor, PersonsEditor, and MarkdownEditor now have their id set correctly, enabling proper identification as the last field in a tab.
Co Contributor: Noah-Martin1
Steps to test
Mandatory checks
CHANGELOG.mdin a way that is understandable for the average user (if change is visible to the user)Screen.Recording.2025-09-13.155910.mp4