|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 5 |
|
| Author |
|
|
Stranger Joined: Nov 13, 2009 Post Count: 3 Status: Offline |
I was definitely seeing the earlier context menu (with "Search in Spotlight" in it). I was able to get the context menus you show by downloading the code and commenting out: if([event type] == NSRightMouseDown) in menuForEvent inside of ModuleViewController.m. In debug I had previously noticed that my Ctrl-Click was sending LMouseDown to this event handler. |
||
|
|
Inventory Germany Joined: Jun 12, 2008 Post Count: 637 Status: Offline |
There is a debug log in this method -menuForEvent:. It always says:
here when using my mouse. Hmm, hold on, indeed when used on a Laptop with Ctrl-Click a LMouseDown is sent. The question is whether this is a bug in Mac OSX. But even if so, there might be a work around. @Clerical: do you use Ctrl-Click on a Laptop? |
||
|
|
Inventory Germany Joined: Jun 12, 2008 Post Count: 637 Status: Offline |
Commenting out this line brings brings the right context menu always. But I'm wondering whether there might be any other side effects. |
||
|
|
Stranger Joined: Nov 13, 2009 Post Count: 3 Status: Offline |
According to the postings at http://www.mackb.com/Uwe/Forum.aspx/mac-hardware/1240/Right-click-mouse it seems that it isn't a bug in OSX but rather sets the left-click and then an NSControlKeyMask flag. That is probably correct and if you have a multi-button mouse then it works right, but I'd always thought of Ctrl-Click as being the equivalent of right-click, which really it isn't. On my laptop I set the Secondary Tap on the Trackpad and it correctly sends the RMouseDown event. I agree with you about the side effects. What if you changed the if statement to be: (([event type] == NSRightMouseDown) || (([event type] == NSLeftMouseDown)&&([event modifierFlags]&NSControlKeyMask))) Would that work? |
||
|
|
Inventory Germany Joined: Jun 12, 2008 Post Count: 637 Status: Offline |
Yes, I think that would work. I'll put this in. Thanks for your help. |
||
|
|
|
|
Current timezone is GMT May 21, 2013 3:52:48 AM |