From: Jim Procter Date: Fri, 27 Oct 2017 15:21:14 +0000 (+0100) Subject: JAL-2804 update search results when enter pressed or query retrieved from history X-Git-Tag: Release_2_10_3b1~39^2~13 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=dedd236843564ac6762c85b7fc061b86313b3a4e;p=jalview.git JAL-2804 update search results when enter pressed or query retrieved from history --- diff --git a/src/jalview/fts/core/GFTSPanel.java b/src/jalview/fts/core/GFTSPanel.java index 67cbb53..67f1fdc 100644 --- a/src/jalview/fts/core/GFTSPanel.java +++ b/src/jalview/fts/core/GFTSPanel.java @@ -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