From d3b955e8394e25a17aafc2e5a537a2f313f47077 Mon Sep 17 00:00:00 2001 From: bartsch-dev Date: Tue, 11 Oct 2016 03:35:34 +0200 Subject: [PATCH] fix switching edited textfield in the entry editor with TAB (#2138) --- .../sf/jabref/gui/maintable/MainTableSelectionListener.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/net/sf/jabref/gui/maintable/MainTableSelectionListener.java b/src/main/java/net/sf/jabref/gui/maintable/MainTableSelectionListener.java index 92821260f1e..e490a95f886 100644 --- a/src/main/java/net/sf/jabref/gui/maintable/MainTableSelectionListener.java +++ b/src/main/java/net/sf/jabref/gui/maintable/MainTableSelectionListener.java @@ -102,6 +102,12 @@ public void listChanged(ListEvent 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)) {