Skip to content

Commit

Permalink
fix switching edited textfield in the entry editor with TAB (JabRef#2138
Browse files Browse the repository at this point in the history
)
  • Loading branch information
chriba authored and zesaro committed Oct 27, 2016
1 parent c9221d6 commit b3c0650
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ public void listChanged(ListEvent<BibEntry> e) {
}

final BibEntry newSelected = selected.get(0);
if ((panel.getMode() == BasePanelMode.SHOWING_EDITOR || panel.getMode() == BasePanelMode.WILL_SHOW_EDITOR)
&& newSelected == panel.getCurrentEditor().getEntry()) {
// entry already selected and currently editing it, do not steal the focus from the selected textfield
return;
}

if (newSelected != null) {
final BasePanelMode mode = panel.getMode(); // What is the panel already showing?
if ((mode == BasePanelMode.WILL_SHOW_EDITOR) || (mode == BasePanelMode.SHOWING_EDITOR)) {
Expand Down

0 comments on commit b3c0650

Please sign in to comment.