From: Jim Procter Date: Tue, 26 Apr 2016 13:56:07 +0000 (+0100) Subject: JAL-2077 reinstate JAL-1554 fix for left-then-right click workaround to prevent ID... X-Git-Tag: Release_2_10_0~247^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=be51e875b8c89a69629ecde5ec71aa9fc550b0fb;p=jalview.git JAL-2077 reinstate JAL-1554 fix for left-then-right click workaround to prevent ID links opening --- diff --git a/src/jalview/gui/IdPanel.java b/src/jalview/gui/IdPanel.java index e247793..c84505b 100755 --- a/src/jalview/gui/IdPanel.java +++ b/src/jalview/gui/IdPanel.java @@ -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; }