On Sep 11, 2012, at 3:27 PM, Christian Schmitz <[email protected]> 
wrote:

> 
> Am 11.09.2012 um 14:46 schrieb Gavin Smith <[email protected]>:
> 
>> I am trying to implement keyboard shortcuts on NSStatusItems but I can't 
>> figure out how. The StatusItem example app has .keyequivalent set and you 
>> can see the shortcut in the menu but I'm not sure if this has been 
>> implemented - maybe it's just for an example?
>> 
>> I would appreciate any help in getting keyboard shortcuts working with 
>> NSStatusItems.
> 
> 
> You can try like this:
> 
> 
> a.keyEquivalent = encodings.UTF8.Chr(NSEventMBS.NSF6FunctionKey)
> a.keyEquivalentModifierMask = NSEventMBS.NSCommandKeyMask
> 
> this works for me and shows command F6 in the menu and menu item action is 
> executed when the app is frontmost.

Doesn't work for me on 10.8.1, latest plugins, latest RS on MBA 11" 2012. I've 
tried pressing the Fn key at the same time, but I just get the Mac error sound. 
I can select the menu item as normal with the mouse.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to