JAL-2804 update search results when enter pressed or query retrieved from history
authorJim Procter <jprocter@issues.jalview.org>
Fri, 27 Oct 2017 15:21:14 +0000 (16:21 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Fri, 27 Oct 2017 15:21:14 +0000 (16:21 +0100)
src/jalview/fts/core/GFTSPanel.java

index 67cbb53..67f1fdc 100644 (file)
@@ -517,8 +517,14 @@ public abstract class GFTSPanel extends JPanel implements GFTSPanelI
                   if (primaryKeyName.equalsIgnoreCase(getCmbSearchTarget()
                           .getSelectedItem().toString()))
                   {
+                    // TODO: nicer to show the list in the result set before
+                    // viewing in Jalview perhaps ?
                     transferToSequenceFetcher(getTypedText());
                   }
+                  else
+                  {
+                    performSearchAction();
+                  }
                 }
               }
             });
@@ -553,6 +559,15 @@ public abstract class GFTSPanel extends JPanel implements GFTSPanelI
       }
     });
 
+    txt_search.addActionListener(new ActionListener()
+    {
+
+      @Override
+      public void actionPerformed(ActionEvent e)
+      {
+        performSearchAction();
+      }
+    });
     final String searchTabTitle = MessageManager
             .getString("label.search_result");
     final String configureCols = MessageManager