Re: Return vs Enter
Re: Return vs Enter
- Subject: Re: Return vs Enter
- From: Gregory Cooksey <email@hidden>
- Date: Tue, 8 Nov 2005 01:27:45 -0600
On Nov 7, 2005, at 10:59 AM, Daniel Jalkut wrote:
You could examine the virtual key code for the event (-[NSEvent
keyCode]). As far as I know it will always be the same for the
Enter key. From Apple's "iGetKeys.c":
kVirtualEnterKey = 0x04C,
I'm only 99% sure that this is true on all non-Roman keyboards,
though. Does anybody have any cause for concern about relying on this?
I was experimenting with keycodes a couple weeks ago and discovered
two different codes for Enter. The powerbook enter key down by the
space bar is 52 decimal, while the numeric keypad enter seems to be
76 decimal. And if you hold down the Fn key and press the Enter by
the space bar you get 110, which I have not been able to identify.
-Greg
_______________________________________________
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