From be51e875b8c89a69629ecde5ec71aa9fc550b0fb Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 26 Apr 2016 14:56:07 +0100 Subject: [PATCH] JAL-2077 reinstate JAL-1554 fix for left-then-right click workaround to prevent ID links opening --- src/jalview/gui/IdPanel.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 1.7.10.2