From 35b4cf7880526ca4147b75d5ab30be7a03182ccd Mon Sep 17 00:00:00 2001 From: Scott Fennell Date: Thu, 24 Jan 2019 16:19:01 -0600 Subject: [PATCH] fix right click in java uis --- trick_source/java/src/trick/common/ui/UIUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/trick_source/java/src/trick/common/ui/UIUtils.java b/trick_source/java/src/trick/common/ui/UIUtils.java index 95c4827e..d1ac46a3 100644 --- a/trick_source/java/src/trick/common/ui/UIUtils.java +++ b/trick_source/java/src/trick/common/ui/UIUtils.java @@ -283,8 +283,7 @@ public class UIUtils { */ public static boolean isRightMouseClick(MouseEvent e) { boolean rval = false; - - if( (e.getModifiersEx()&MouseEvent.BUTTON3_DOWN_MASK)==MouseEvent.BUTTON3_DOWN_MASK ) { + if(e.getButton() == 3) { rval = true; }