fix right click in java uis

This commit is contained in:
Scott Fennell 2019-01-24 16:19:01 -06:00
parent 6240b2a893
commit 35b4cf7880

View File

@ -283,8 +283,7 @@ public class UIUtils {
*/ */
public static boolean isRightMouseClick(MouseEvent e) { public static boolean isRightMouseClick(MouseEvent e) {
boolean rval = false; boolean rval = false;
if(e.getButton() == 3) {
if( (e.getModifiersEx()&MouseEvent.BUTTON3_DOWN_MASK)==MouseEvent.BUTTON3_DOWN_MASK ) {
rval = true; rval = true;
} }