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:
96ae263
)
JAL-2077 using Platform method to check for Ctrl-down
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 18 Aug 2016 15:20:50 +0000
(16:20 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 18 Aug 2016 15:20:50 +0000
(16:20 +0100)
src/jalview/gui/FeatureSettings.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/FeatureSettings.java
b/src/jalview/gui/FeatureSettings.java
index
7d9e937
..
742ff8d
100644
(file)
--- a/
src/jalview/gui/FeatureSettings.java
+++ b/
src/jalview/gui/FeatureSettings.java
@@
-182,9
+182,12
@@
public class FeatureSettings extends JPanel implements
}
else if (evt.getClickCount() == 2)
{
+ boolean invertSelection = evt.isAltDown();
+ boolean ctrlDown = Platform.isControlDown(evt);
+ boolean toggleSelection = ctrlDown;
+ boolean extendSelection = evt.isShiftDown() || ctrlDown;
fr.ap.alignFrame.avc.markColumnsContainingFeatures(
- evt.isAltDown(), evt.isShiftDown() || evt.isMetaDown(),
- evt.isMetaDown(),
+ invertSelection, extendSelection, toggleSelection,
(String) table.getValueAt(selectedRow, 0));
}
}