JAL-1446 use popup event trigger instead of right-click event
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Tue, 18 Feb 2014 09:25:31 +0000 (09:25 +0000)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Tue, 18 Feb 2014 09:26:03 +0000 (09:26 +0000)
src/jalview/gui/FeatureSettings.java

index 10479cc..9adb254 100644 (file)
@@ -99,7 +99,7 @@ public class FeatureSettings extends JPanel
       public void mousePressed(MouseEvent evt)
       {
         selectedRow = table.rowAtPoint(evt.getPoint());
-        if (javax.swing.SwingUtilities.isRightMouseButton(evt))
+        if (evt.isPopupTrigger())
         {
           popupSort(selectedRow, (String) table.getValueAt(selectedRow, 0),
                   table.getValueAt(selectedRow, 1), fr.minmax, evt.getX(),