Re: Getting Cursor key events in Cocoa
Re: Getting Cursor key events in Cocoa
- Subject: Re: Getting Cursor key events in Cocoa
- From: Jason Blake <email@hidden>
- Date: Thu, 10 Jan 2002 18:42:12 -0600
ok, yea RTFM ;). but FYI from the documentation for NSEvent:
These constants represent Unicode characters (0xF700-0xF8FF) that are
reserved for function keys on the keyboard. Combined in NSStrings, they
are the return values of the NSEvent methods characters and
charactersIgnoringModifiers
<it then goes on to list some constants, and at the top of the list is:>
NSUpArrowFunctionKey
NSDownArrowFunctionKey
NSLeftArrowFunctionKey
NSRightArrowFunctionKey
I don't know if Keycode returns these values but you could experiment
and see.
On Thursday, January 10, 2002, at 05:53 PM, Mike Brinkman wrote:
O.K.,
I'm sure everybody's going to say RTFM, but...
I've checked out NSResponder, keyDown, and NSEvent, but didn't see
anything
which told me which key is which. I'm primarily interested in finding
out if
someone has pushed the up, down, left or right arrow key. If there's
some
place that lists what to event is generated for each key, I'd like to
find
out.
Thanks in advance!
Mike
_______________________________________________
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.