JAL-2077 reinstate JAL-1554 fix for left-then-right click workaround to prevent ID...
authorJim Procter <jprocter@issues.jalview.org>
Tue, 26 Apr 2016 13:56:07 +0000 (14:56 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 26 Apr 2016 13:56:07 +0000 (14:56 +0100)
src/jalview/gui/IdPanel.java

index e247793..c84505b 100755 (executable)
@@ -191,8 +191,10 @@ public class IdPanel extends JPanel implements MouseListener,
      * Ignore single click. Ignore 'left' click followed by 'right' click (user
      * selects a row then its pop-up menu).
      */
-    if (e.getClickCount() < 2 || e.isPopupTrigger())
+    if (e.getClickCount() < 2 || SwingUtilities.isRightMouseButton(e))
     {
+      // reinstate isRightMouseButton check to ignore mouse-related popup events
+      // note - this does nothing on default MacBookPro force-trackpad config!
       return;
     }