git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2077 fix: convenience method and checks for CMD+Click to toggle selections
[jalview.git]
/
src
/
jalview
/
gui
/
AnnotationLabels.java
diff --git
a/src/jalview/gui/AnnotationLabels.java
b/src/jalview/gui/AnnotationLabels.java
index
68df498
..
8b9168a
100755
(executable)
--- a/
src/jalview/gui/AnnotationLabels.java
+++ b/
src/jalview/gui/AnnotationLabels.java
@@
-833,7
+833,8
@@
public class AnnotationLabels extends JPanel implements MouseListener,
// we make a copy rather than edit the current selection if no
// modifiers pressed
// see Enhancement JAL-1557
// we make a copy rather than edit the current selection if no
// modifiers pressed
// see Enhancement JAL-1557
- if (!(evt.isControlDown() || evt.isShiftDown()))
+ if (!(jalview.util.Platform.isControlDown(evt) || evt
+ .isShiftDown()))
{
sg = new SequenceGroup(sg);
sg.clear();
{
sg = new SequenceGroup(sg);
sg.clear();
@@
-841,7
+842,7
@@
public class AnnotationLabels extends JPanel implements MouseListener,
}
else
{
}
else
{
- if (evt.isControlDown())
+ if (jalview.util.Platform.isControlDown(evt))
{
sg.addOrRemove(aa[selectedRow].sequenceRef, true);
}
{
sg.addOrRemove(aa[selectedRow].sequenceRef, true);
}