• 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
[Q] arrow key codes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] arrow key codes?


  • Subject: [Q] arrow key codes?
  • From: JongAm Park <email@hidden>
  • Date: Wed, 17 May 2006 23:06:20 -0700

Hello.

I would like to detect if arrow keys are pressed.
So, I used NSUpArrowFunctionKey, NSDownArrowFunctionKey, and so on.

However, if the key code is retrieved using [theEvent keyCode],
the keyCode is 0x7E when the arrow key is pressed, instead of 0xF700, which is NSUpArrowFunctionkey.


I searched the Apple document if there is other set of constant values, but I couldn't find them.

Can anyone explain me why it retrieves strange key codes and what the correct constants are?

Thank you.
JongAm Park
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: What's so special about NSString literals? (RE: memory management)
  • Next by Date: Re: [Q] arrow key codes?
  • Previous by thread: Re: Can I assume uninitialized variable's value to be nil or 0?
  • Next by thread: Re: [Q] arrow key codes?
  • Index(es):
    • Date
    • Thread