add VK_F key, up down
authoramwaterhouse <Andrew Waterhouse>
Fri, 11 Feb 2005 12:44:21 +0000 (12:44 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 11 Feb 2005 12:44:21 +0000 (12:44 +0000)
src/jalview/gui/AlignmentPanel.java

index 0808f17..3ce9fa1 100755 (executable)
@@ -60,7 +60,7 @@ public class AlignmentPanel extends GAlignmentPanel implements AdjustmentListene
      {\r
        switch(evt.getKeyCode())\r
        {\r
-         case 27: // escape key\r
+         case  27: // escape key\r
            av.setRubberbandGroup(null);\r
            RefreshPanels();\r
            break;\r
@@ -76,22 +76,21 @@ public class AlignmentPanel extends GAlignmentPanel implements AdjustmentListene
          case KeyEvent.VK_A:\r
            alignFrame.selectAllSequenceMenuItem_actionPerformed(null);\r
            break;\r
-\r
+        case KeyEvent.VK_DOWN:\r
+          alignFrame.moveSelectedSequences(false);\r
+          break;\r
+        case KeyEvent.VK_UP:\r
+          alignFrame.moveSelectedSequences(true);\r
+          break;\r
+        case KeyEvent.VK_F:\r
+          alignFrame.findMenuItem_actionPerformed(null);\r
+          break;\r
        }\r
-\r
-      /* public void doKeyPressed(KeyEvent evt)\r
-       {\r
-\r
-         if (evt.isControlDown() && evt.getKeyChar() == 'f')\r
-           findMenuItem_actionPerformed(null);\r
-       }*/\r
-\r
      }\r
    });\r
-\r
-\r
   }\r
 \r
+\r
  public void highlightSearchResults(int [] results)\r
  {\r
    seqPanel.seqCanvas.highlightSearchResults( results );\r