From 51d6ad94bf0acf8c9d49dc2821e6b2067c711575 Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Mon, 29 May 2017 13:05:05 +0100 Subject: [PATCH] JAL-1648 code fix - enter key should pick selected item on finder searchbox --- src/jalview/jbgui/GFinder.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/jalview/jbgui/GFinder.java b/src/jalview/jbgui/GFinder.java index bbd20ca..00b4fdc 100755 --- a/src/jalview/jbgui/GFinder.java +++ b/src/jalview/jbgui/GFinder.java @@ -33,7 +33,6 @@ import java.awt.Font; import java.awt.GridLayout; import java.awt.Insets; import java.awt.event.ActionEvent; -import java.awt.event.KeyEvent; import javax.swing.JButton; import javax.swing.JCheckBox; @@ -143,15 +142,6 @@ public class GFinder extends JPanel textfield_caretUpdate(e); } }); - searchBox.getEditor().getEditorComponent() - .addKeyListener(new java.awt.event.KeyAdapter() - { - @Override - public void keyPressed(KeyEvent e) - { - textfield_keyPressed(e); - } - }); mainBorderLayout.setHgap(5); mainBorderLayout.setVgap(5); @@ -194,14 +184,6 @@ public class GFinder extends JPanel { } - protected void textfield_keyPressed(KeyEvent e) - { - if (e.getKeyCode() == KeyEvent.VK_ENTER) - { - e.consume(); - findNext_actionPerformed(null); - } - } public void createFeatures_actionPerformed() { -- 1.7.10.2