From 56c4bbb0c67941f9adf823e450ccc3b4e02ea3eb Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 3 Oct 2005 11:07:40 +0000 Subject: [PATCH] Keylistener added to internalFrame --- src/jalview/gui/AlignmentPanel.java | 4 +--- src/jalview/jbgui/GAlignmentPanel.java | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index a9d532c..e31134b 100755 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -101,8 +101,7 @@ public class AlignmentPanel extends GAlignmentPanel hscroll.addAdjustmentListener(this); vscroll.addAdjustmentListener(this); - setFocusable(true); - addKeyListener(new KeyAdapter() + af.addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent evt) { @@ -136,7 +135,6 @@ public class AlignmentPanel extends GAlignmentPanel seqPanel.seqCanvas.decreaseAARation(); break; } - } }); } diff --git a/src/jalview/jbgui/GAlignmentPanel.java b/src/jalview/jbgui/GAlignmentPanel.java index 8d6312b..a412125 100755 --- a/src/jalview/jbgui/GAlignmentPanel.java +++ b/src/jalview/jbgui/GAlignmentPanel.java @@ -90,7 +90,6 @@ public class GAlignmentPanel annotationScroller.setBorder(null); annotationScroller.setPreferredSize(new Dimension(10, 80)); this.setPreferredSize(new Dimension(220, 166)); - this.setRequestFocusEnabled(true); sequenceHolderPanel.add(scalePanelHolder, BorderLayout.NORTH); sequenceHolderPanel.add(seqPanelHolder, BorderLayout.CENTER); -- 1.7.10.2