From: amwaterhouse Date: Fri, 11 Feb 2005 12:44:21 +0000 (+0000) Subject: add VK_F key, up down X-Git-Tag: Release_2_0~663 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fd4d7f8d455deb79c823a430364053564c23ca3c;p=jalview.git add VK_F key, up down --- diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index 0808f17..3ce9fa1 100755 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -60,7 +60,7 @@ public class AlignmentPanel extends GAlignmentPanel implements AdjustmentListene { switch(evt.getKeyCode()) { - case 27: // escape key + case 27: // escape key av.setRubberbandGroup(null); RefreshPanels(); break; @@ -76,22 +76,21 @@ public class AlignmentPanel extends GAlignmentPanel implements AdjustmentListene case KeyEvent.VK_A: alignFrame.selectAllSequenceMenuItem_actionPerformed(null); break; - + case KeyEvent.VK_DOWN: + alignFrame.moveSelectedSequences(false); + break; + case KeyEvent.VK_UP: + alignFrame.moveSelectedSequences(true); + break; + case KeyEvent.VK_F: + alignFrame.findMenuItem_actionPerformed(null); + break; } - - /* public void doKeyPressed(KeyEvent evt) - { - - if (evt.isControlDown() && evt.getKeyChar() == 'f') - findMenuItem_actionPerformed(null); - }*/ - } }); - - } + public void highlightSearchResults(int [] results) { seqPanel.seqCanvas.highlightSearchResults( results );