H key to hide / reveal
authoramwaterhouse <Andrew Waterhouse>
Tue, 15 Aug 2006 10:34:56 +0000 (10:34 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 15 Aug 2006 10:34:56 +0000 (10:34 +0000)
src/jalview/gui/AlignmentPanel.java

index 6f9d84b..7446d6d 100755 (executable)
@@ -235,6 +235,23 @@ public class AlignmentPanel extends GAlignmentPanel
               ex.printStackTrace();\r
             }\r
             break;\r
+          case KeyEvent.VK_H:\r
+          {\r
+            SequenceGroup sg = av.getSelectionGroup();\r
+            if(sg!=null && sg.getSize(false)!=av.alignment.getHeight())\r
+            {\r
+              alignFrame.hideSelSequences_actionPerformed(null);\r
+            }\r
+            else\r
+              alignFrame.showAllSeqs_actionPerformed(null);\r
+\r
+            if(av.colSel.getSelected().size()>0)\r
+              alignFrame.hideSelColumns_actionPerformed(null);\r
+            else\r
+              alignFrame.showAllColumns_actionPerformed(null);\r
+\r
+            break;\r
+          }\r
 \r
         }\r
       }\r