setKeyEquivalent issue
setKeyEquivalent issue
- Subject: setKeyEquivalent issue
- From: Adrian DeWitts <email@hidden>
- Date: Fri, 6 Dec 2002 00:06:33 +1100
- Resent-date: Fri, 6 Dec 2002 13:45:46 +1100
- Resent-from: Adrian DeWitts <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: email@hidden
Hi, I sent this in earlier, has anybody else experienced this?
I have set some of my NSButtons key equivalents to arrow keys like so:
unichar left = NSLeftArrowFunctionKey;
[_rewind setKeyEquivalent:[NSString stringWithCharacters:&left
length:1]];
Which works but instead sends 2 action messages. One on the key down
and one on the key up. If I set the key equivalents to anything else
with this method it works fine and sends the 1 action message as it
should. I have made sure there are no other action items set to the
arrow keys. Also if I set the modifier with
setKeyEquivalentModifierMask it will work as expected with the
modifier. I have also made a fresh testing program to test this and get
the same problem.
So what am I missing here?
Thanks for your help.
Adrian
"I believe in equality for everyone, except reporters and
photographers."
Gandhi
_______________________________________________
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.