From: amwaterhouse Date: Tue, 15 Aug 2006 10:34:56 +0000 (+0000) Subject: H key to hide / reveal X-Git-Tag: Release_2_1~60 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b3a9ff5a8616675f6526bb07c06b047fcc216f83;p=jalview.git H key to hide / reveal --- diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index 6f9d84b..7446d6d 100755 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -235,6 +235,23 @@ public class AlignmentPanel extends GAlignmentPanel ex.printStackTrace(); } break; + case KeyEvent.VK_H: + { + SequenceGroup sg = av.getSelectionGroup(); + if(sg!=null && sg.getSize(false)!=av.alignment.getHeight()) + { + alignFrame.hideSelSequences_actionPerformed(null); + } + else + alignFrame.showAllSeqs_actionPerformed(null); + + if(av.colSel.getSelected().size()>0) + alignFrame.hideSelColumns_actionPerformed(null); + else + alignFrame.showAllColumns_actionPerformed(null); + + break; + } } }