Keylistener added to internalFrame
authoramwaterhouse <Andrew Waterhouse>
Mon, 3 Oct 2005 11:07:40 +0000 (11:07 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 3 Oct 2005 11:07:40 +0000 (11:07 +0000)
src/jalview/gui/AlignmentPanel.java
src/jalview/jbgui/GAlignmentPanel.java

index a9d532c..e31134b 100755 (executable)
@@ -101,8 +101,7 @@ public class AlignmentPanel extends GAlignmentPanel
         hscroll.addAdjustmentListener(this);\r
         vscroll.addAdjustmentListener(this);\r
 \r
-        setFocusable(true);\r
-        addKeyListener(new KeyAdapter()\r
+        af.addKeyListener(new KeyAdapter()\r
             {\r
                 public void keyPressed(KeyEvent evt)\r
                 {\r
@@ -136,7 +135,6 @@ public class AlignmentPanel extends GAlignmentPanel
                       seqPanel.seqCanvas.decreaseAARation();\r
                       break;\r
                     }\r
-\r
                 }\r
             });\r
     }\r
index 8d6312b..a412125 100755 (executable)
@@ -90,7 +90,6 @@ public class GAlignmentPanel
     annotationScroller.setBorder(null);\r
     annotationScroller.setPreferredSize(new Dimension(10, 80));\r
     this.setPreferredSize(new Dimension(220, 166));\r
-    this.setRequestFocusEnabled(true);\r
 \r
     sequenceHolderPanel.add(scalePanelHolder, BorderLayout.NORTH);\r
     sequenceHolderPanel.add(seqPanelHolder, BorderLayout.CENTER);\r