JAL-1860 disabled default enter behaviour on pdb search summary table, and added...
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 25 Sep 2015 10:11:34 +0000 (11:11 +0100)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 25 Sep 2015 10:11:34 +0000 (11:11 +0100)
src/jalview/jbgui/GPDBSearchPanel.java
src/jalview/jbgui/GStructureChooser.java

index 58ec25e..ddb2f7a 100644 (file)
@@ -186,9 +186,18 @@ public abstract class GPDBSearchPanel extends JPanel
           {
             btn_ok_ActionPerformed();
           }
+          evt.consume();
           break;
         case KeyEvent.VK_TAB: // tab key
-          btn_back.requestFocus();
+          if (evt.isShiftDown())
+          {
+            txt_search.requestFocus();
+          }
+          else
+          {
+            btn_back.requestFocus();
+          }
+          break;
         default:
           return;
         }
index 73a5615..cf80613 100644 (file)
@@ -241,7 +241,15 @@ public abstract class GStructureChooser extends JPanel implements
           }
           break;
         case KeyEvent.VK_TAB: // tab key
-          btn_view.requestFocus();
+          if (evt.isShiftDown())
+          {
+            chk_invertFilter.requestFocus();
+          }
+          else
+          {
+            btn_view.requestFocus();
+          }
+          break;
         default:
           return;
         }
@@ -279,7 +287,15 @@ public abstract class GStructureChooser extends JPanel implements
           }
           break;
         case KeyEvent.VK_TAB: // tab key
-          btn_cancel.requestFocus();
+          if (evt.isShiftDown())
+          {
+            cmb_filterOption.requestFocus();
+          }
+          else
+          {
+            btn_view.requestFocus();
+          }
+
         default:
           return;
         }