JAL-2077 using Platform method to check for Ctrl-down
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 18 Aug 2016 15:20:50 +0000 (16:20 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 18 Aug 2016 15:20:50 +0000 (16:20 +0100)
src/jalview/gui/FeatureSettings.java

index 7d9e937..742ff8d 100644 (file)
@@ -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));
         }
       }