This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | command-click incorrectly mapped to right-click action | ||
---|---|---|---|
Product: | guibuilder | Reporter: | robross <robross> |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | ytn01 |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | Macintosh | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
robross
2005-06-29 22:32:35 UTC
*** Issue 77371 has been marked as a duplicate of this issue. *** Both Control-click and Command-click show popup menu. The problem is that with the command key the mouse event has both left and right mouse button (together with META modifier). We check the buttons exclusively, right one first. To recognize when to show popup menu we should use MouseEvent.isPopupTrigger() (check both in mousePressed and mouseReleased). To recognize a plain right click (that e.g. cancels dragging) we should check there is no left mouse button at the same time (on mousePressed). For adding/removing selection we should check left button and Meta (like Ctrl, on mousePressed). *** Bug 214432 has been marked as a duplicate of this bug. *** Tried to fix the situation a bit. Could not actually try on Mac. http://hg.netbeans.org/jet-main/rev/120eef741d63 Integrated into 'main-silver', will be available in build *201308112300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/120eef741d63 User: Tomas Pavek <tpavek@netbeans.org> Log: #60643: trying to correctly map Command+click on Mac to multiselect, plus some more tweaks in clicking |