From dd2acb4e1060219d28f3acbe34772b947a6a4547 Mon Sep 17 00:00:00 2001 From: James Procter Date: Mon, 1 May 2023 15:12:18 +0100 Subject: [PATCH] JAL-4134 double click to select column groups --- src/jalview/gui/AnnotationPanel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index eeda585..3bf24b4 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -655,7 +655,8 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, fr = Math.min(cXci.cStart, cXci.cEnd); to = Math.max(cXci.cStart, cXci.cEnd); - if (evt.isControlDown()) + // double click selects the whole group + if (evt.getClickCount()==2) { ContactMatrixI matrix = av.getContactMatrix(clicked); @@ -705,7 +706,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, // PAE SPECIFIC // and also select everything lower than the max range adjacent // (kind of works) - if (PAEContactMatrix.PAEMATRIX.equals(clicked.getCalcId())) + if (evt.isControlDown() && PAEContactMatrix.PAEMATRIX.equals(clicked.getCalcId())) { int c = fr - 1; ContactRange cr = forCurrentX.getRangeFor(fr, to); -- 1.7.10.2