Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Entry does no longer focus on first field instead search field is focused #4024

Closed
Siedlerchr opened this issue May 9, 2018 · 1 comment · Fixed by #4112
Closed

New Entry does no longer focus on first field instead search field is focused #4024

Siedlerchr opened this issue May 9, 2018 · 1 comment · Fixed by #4112
Labels
bug Confirmed bugs or reports that are very likely to be bugs entry-editor

Comments

@Siedlerchr
Copy link
Member

JabRef 4.2
Windows 10

  1. Create new Entry/Article
  2. Enter text
  3. Note that the text is entered in the search field
@Siedlerchr Siedlerchr added bug Confirmed bugs or reports that are very likely to be bugs entry-editor labels May 9, 2018
@Siedlerchr
Copy link
Member Author

I debugged this a bit, and found out that the focus is never given to the field, because in FieldsEditor.Tab the variable activeField is always null. The variable is only set in the method requestFocus. And when I see this right f rom the callstack, it's only called from the ingetrity checker, if you click on a list. @tobiasdiez Any idea how to auto-focus the first field automatically? I mean this was always the case

@Override
public void handleFocus() {
if (activeField != null) {
activeField.requestFocus();
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs entry-editor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant