From: tcofoegbu Date: Wed, 30 Sep 2015 15:07:47 +0000 (+0100) Subject: JAL-1860 house keeping X-Git-Tag: Release_2_10_0~378 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=dd87fa6e6c935710314ccd705097dbcada97b87c;p=jalview.git JAL-1860 house keeping --- diff --git a/src/jalview/jbgui/GPDBSearchPanel.java b/src/jalview/jbgui/GPDBSearchPanel.java index ddb2f7a..a105999 100644 --- a/src/jalview/jbgui/GPDBSearchPanel.java +++ b/src/jalview/jbgui/GPDBSearchPanel.java @@ -191,12 +191,13 @@ public abstract class GPDBSearchPanel extends JPanel case KeyEvent.VK_TAB: // tab key if (evt.isShiftDown()) { - txt_search.requestFocus(); + tabbedPane.requestFocus(); } else { btn_back.requestFocus(); } + evt.consume(); break; default: return; diff --git a/src/jalview/jbgui/GStructureChooser.java b/src/jalview/jbgui/GStructureChooser.java index cf80613..1334021 100644 --- a/src/jalview/jbgui/GStructureChooser.java +++ b/src/jalview/jbgui/GStructureChooser.java @@ -243,12 +243,13 @@ public abstract class GStructureChooser extends JPanel implements case KeyEvent.VK_TAB: // tab key if (evt.isShiftDown()) { - chk_invertFilter.requestFocus(); + pnl_filter.requestFocus(); } else { btn_view.requestFocus(); } + evt.consume(); break; default: return; @@ -293,9 +294,16 @@ public abstract class GStructureChooser extends JPanel implements } else { + if (btn_view.isEnabled()) + { btn_view.requestFocus(); + } + else + { + btn_cancel.requestFocus(); + } } - + evt.consume(); default: return; }