Author: scooter
Date: 2012-05-22 09:59:22 -0700 (Tue, 22 May 2012)
New Revision: 29309
Modified:
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/ButtonDelegator.java
Log:
Change button 3 emulation on the mac back to Control-Click, which is the
documented standard for mac applications.
Modified:
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/ButtonDelegator.java
===================================================================
---
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/ButtonDelegator.java
2012-05-22 16:57:28 UTC (rev 29308)
+++
core3/impl/trunk/ding-impl/ding-presentation-impl/src/main/java/org/cytoscape/ding/impl/ButtonDelegator.java
2012-05-22 16:59:22 UTC (rev 29309)
@@ -79,7 +79,7 @@
private boolean isLeftClick(MouseEvent e) {
boolean b1 = (e.getButton() == MouseEvent.BUTTON1);
if ( isMacPlatform ) {
- return (!e.isMetaDown() && !e.isAltDown() && b1);
+ return (!e.isControlDown() && !e.isAltDown() && b1);
}
return b1;
}
@@ -88,7 +88,7 @@
boolean b3 = (e.getButton() == MouseEvent.BUTTON3);
if ( !b3 && isMacPlatform ) {
// meta - left click
- return (e.isMetaDown() && !e.isAltDown() &&
(e.getButton() == MouseEvent.BUTTON1));
+ return (e.isControlDown() && !e.isAltDown() &&
(e.getButton() == MouseEvent.BUTTON1));
}
return b3;
}
@@ -97,7 +97,7 @@
boolean b2 = (e.getButton() == MouseEvent.BUTTON2);
if ( !b2 && isMacPlatform ) {
// alt - left click
- return (!e.isMetaDown() && e.isAltDown() &&
(e.getButton() == MouseEvent.BUTTON1));
+ return (!e.isControlDown() && e.isAltDown() &&
(e.getButton() == MouseEvent.BUTTON1));
}
return b2;
}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.