Re: keyEquivalentModifierMask problems with Shift
Re: keyEquivalentModifierMask problems with Shift
- Subject: Re: keyEquivalentModifierMask problems with Shift
- From: j o a r <email@hidden>
- Date: Thu, 20 Jun 2002 07:14:04 +0200
Not as far as I know - and for me this is a "bug without workaround" - since AFAIK there isn't a one-to-one relationship with all shifted / non-shifted characters from a keyboard (there might be for plain letters, but not all characters on a keyboard are letters).
I have reported this to RadarWeb (Case 2919862 for you Apple engineers out there, still open but not touched for a couple of months now...). In that case I request that NSMenuItem should return information in the same way that a key event NSEvent does, or that at the very least the right modifier mask be returned and not stripped from information like this.
If I am wrong in my assumptions about this - ie. if there are workarounds to this problem - I would very much appreciate to learn about some form of solution!
In my case I cannot use stuff from Carbon or Core Foundation, since I need to keep compatibility with older versions of Cocoa (namely the Yellow Box for Windows).
j o a r
On Thursday, Jun 20, 2002, at 01:08 Europe/Stockholm, Rosyna wrote:
I have a menu item in a nib. This menu item has a key command of Command-Shift-P however, when I call keyEquivalentModifierMask on the menu item, only the command key is returned. The Shift key is not. Is there anyway to get the shift key as well?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.