git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0c08a3e
)
JAL-4134 double click to select column groups
author
James Procter
<j.procter@dundee.ac.uk>
Mon, 1 May 2023 14:12:18 +0000
(15:12 +0100)
committer
James Procter
<j.procter@dundee.ac.uk>
Mon, 1 May 2023 14:12:18 +0000
(15:12 +0100)
src/jalview/gui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationPanel.java
b/src/jalview/gui/AnnotationPanel.java
index
eeda585
..
3bf24b4
100755
(executable)
--- 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);
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);
{
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)
// 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);
{
int c = fr - 1;
ContactRange cr = forCurrentX.getRangeFor(fr, to);