This PR adds the isPopupTrigger check to the mousePressed event as well, allowing Linux to be supported.
According to this and this, and perfectly in line with the Java motto "build once, run everywhere", Windows will report that isPopupTrigger is true on right click in the mouseReleased event but not in mousePressed, and Linux will do the polar opposite.
The official Oracle tutorial processes the flag in both handlers, so this should be fine.
This PR adds the
isPopupTrigger
check to themousePressed
event as well, allowing Linux to be supported.According to this and this, and perfectly in line with the Java motto "build once, run everywhere", Windows will report that
isPopupTrigger
is true on right click in themouseReleased
event but not inmousePressed
, and Linux will do the polar opposite.The official Oracle tutorial processes the flag in both handlers, so this should be fine.