git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6745b8
)
JAL-2077 reinstate JAL-1554 fix for left-then-right click workaround to prevent ID...
author
Jim Procter
<jprocter@issues.jalview.org>
Tue, 26 Apr 2016 13:56:07 +0000
(14:56 +0100)
committer
Jim Procter
<jprocter@issues.jalview.org>
Tue, 26 Apr 2016 13:56:07 +0000
(14:56 +0100)
src/jalview/gui/IdPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/IdPanel.java
b/src/jalview/gui/IdPanel.java
index
e247793
..
c84505b
100755
(executable)
--- 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;
}