From dedd236843564ac6762c85b7fc061b86313b3a4e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 27 Oct 2017 16:21:14 +0100 Subject: [PATCH] JAL-2804 update search results when enter pressed or query retrieved from history --- src/jalview/fts/core/GFTSPanel.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- 1.7.10.2