Skip to content

Commit

Permalink
fix switching edited textfield in the entry editor with TAB (#2138)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriba authored and koppor committed Oct 11, 2016
1 parent adc5af4 commit d3b955e
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 d3b955e

Please sign in to comment.