From b3a9ff5a8616675f6526bb07c06b047fcc216f83 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 15 Aug 2006 10:34:56 +0000 Subject: [PATCH] H key to hide / reveal --- src/jalview/gui/AlignmentPanel.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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; + } } } -- 1.7.10.2