• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: setKeyEquivalent issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >setKeyEquivalent issue (From: Adrian DeWitts <email@hidden>)

  • Prev by Date: Re: [repost] Using NSFontPanel in a prefPane ?
  • Next by Date: NSButton highlight - ignore
  • Previous by thread: setKeyEquivalent issue
  • Next by thread: stringByTrimmingCharactersInSet trimming too much
  • Index(es):
    • Date
    • Thread