Author: pwang
Date: 2012-06-15 17:27:23 -0700 (Fri, 15 Jun 2012)
New Revision: 29592
Modified:
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkPanel.java
Log:
e.isPopupTrigger() always returns false on Windows, so we make Windows OS an
exception
Modified:
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkPanel.java
===================================================================
---
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkPanel.java
2012-06-16 00:24:53 UTC (rev 29591)
+++
core3/impl/trunk/swing-application-impl/src/main/java/org/cytoscape/internal/view/NetworkPanel.java
2012-06-16 00:27:23 UTC (rev 29592)
@@ -677,8 +677,18 @@
* display the popup
*/
private final void maybeShowPopup(final MouseEvent e) {
+
+ // Note: e.isPopupTrigger() always returns false on
Windows, so we make Windows OS an exception
+ boolean isWinOS = false;
+ boolean isRightClick_WinOS = false;
+ if
(System.getProperty("os.name").toLowerCase().indexOf("win") >= 0){
+ isWinOS = true;
+ }
+ if ((isWinOS && e.getButton() != MouseEvent.BUTTON3))
+ return;
+
// Ignore if not valid trigger.
- if (!e.isPopupTrigger())
+ if (!e.isPopupTrigger() && !isWinOS)
return;
// get the row where the mouse-click originated
--
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.