Re: setKeyEquivalent issue
Re: setKeyEquivalent issue
- Subject: Re: setKeyEquivalent issue
- From: j o a r <email@hidden>
- Date: Fri, 6 Dec 2002 07:38:32 +0100
It was discussed on this list not long ago, I don't remember the
details - but you would find them in the list archives:
<
http://cocoa.mamasam.com/>
I *think* that the conclusion was that you get both up and down key
events for arrow keys. If you don't like that, I think that you need to
file a bug report.
j o a r
On Thursday, Dec 5, 2002, at 14:06 Europe/Stockholm, Adrian DeWitts
wrote:
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?
_______________________________________________
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.