Setting Menu Item's Keyboard Shortcut
Setting Menu Item's Keyboard Shortcut
- Subject: Setting Menu Item's Keyboard Shortcut
- From: Nathan Greenstein <email@hidden>
- Date: Fri, 17 Dec 2010 09:11:51 -0800
Hi All, got a new one for you today.
I'm trying to change the keyboard shortcut for a menu item. Here's the code I'm using:
myMenu's setKeyEquivalent_("c")
myMenu's setKeyEquivalentModifierMask_(current application's NSCommandKeyMask, current application's NSShiftKeyMask)
Here's the problem: It uses the OR/pipe operator. I can't figure out how to replicate that in ASOC. I've tried lists, commas, the or keyword, and lots of parentheses/coercion stuff. None of it works. The closest I've gotten is what's above; it uses just the first term (command, in this case).
Ideas?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden