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.

Bug 60643 - command-click incorrectly mapped to right-click action
Summary: command-click incorrectly mapped to right-click action
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P3 blocker with 2 votes (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 77371 214432 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-29 22:32 UTC by robross
Modified: 2013-08-12 02:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description robross 2005-06-29 22:32:35 UTC
On Mac OS, a control+mouseclick combination is the trigger for the right-menu popup, ie, context-
sensitive menu. But in the Designer window in Matisse, command-click is triggering the popup menu, and 
control-click is adding/removing the selected item from the current selection. These key-mouse 
comibinations should be reversed.
Comment 1 Jan Stola 2006-09-05 14:59:54 UTC
*** Issue 77371 has been marked as a duplicate of this issue. ***
Comment 2 Tomas Pavek 2010-08-19 16:44:31 UTC
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).
Comment 3 asenk 2012-06-19 12:18:31 UTC
*** Bug 214432 has been marked as a duplicate of this bug. ***
Comment 4 Tomas Pavek 2013-08-09 17:24:29 UTC
Tried to fix the situation a bit. Could not actually try on Mac.
http://hg.netbeans.org/jet-main/rev/120eef741d63
Comment 5 Quality Engineering 2013-08-12 02:14:31 UTC
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