mirror of
https://github.com/nasa/trick.git
synced 2024-12-20 13:43:10 +00:00
fix right click in java uis
This commit is contained in:
parent
6240b2a893
commit
35b4cf7880
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user