fix right-click for OS X

This commit is contained in:
benfry
2012-11-23 18:41:06 +00:00
parent 03ec075933
commit 9e85ecaff4
+1 -1
View File
@@ -2656,7 +2656,7 @@ public class PApplet extends Applet
// for mouseClicked and mouseReleased (or others).
if (platform == MACOSX) {
//if (nativeEvent.isPopupTrigger()) {
if ((modifiers & InputEvent.CTRL_DOWN_MASK) != 0) {
if ((modifiers & InputEvent.CTRL_MASK) != 0) {
peButton = RIGHT;
}
}