JAL-2077 - reinstate popups on osx
[jalview.git] / src / jalview / gui / IdPanel.java
index eb5faa1..e247793 100755 (executable)
@@ -191,7 +191,7 @@ 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 || SwingUtilities.isRightMouseButton(e))
+    if (e.getClickCount() < 2 || e.isPopupTrigger())
     {
       return;
     }
@@ -316,7 +316,7 @@ public class IdPanel extends JPanel implements MouseListener,
 
     int seq = alignPanel.getSeqPanel().findSeq(e);
 
-    if (SwingUtilities.isRightMouseButton(e))
+    if (e.isPopupTrigger())
     {
       Sequence sq = (Sequence) av.getAlignment().getSequenceAt(seq);
       // build a new links menu based on the current links + any non-positional