I am creating menu items with
- (id)initWithTitle:(NSString *)aString action:(SEL)aSelector
keyEquivalent:(NSString *)charCode;
and would like this menu item to fire its action when the user presses
Command-CursorRight. What charCode string would I have to pass for
this?
I have really no idea!
The file NSEvent.h has
NSRightArrowFunctionKey = 0xF703,
but I am not sure if this value as the first character of an Unicode
string will actually work. Give it a try and report back to the list.
Here some simple untested example code:
{
unichar c = NSRightArrowFunctionKey;
NSString *s = [NSString stringWithCharacters: &c length: 1];
[mi setKeyEquivalent: s]
}