• 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: Return vs Enter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Return vs Enter


  • Subject: Re: Return vs Enter
  • From: Ricky Sharp <email@hidden>
  • Date: Mon, 7 Nov 2005 15:52:12 -0600


On Nov 7, 2005, at 12:37 PM, Ricky Sharp wrote:


On Monday, November 07, 2005, at 11:00AM, Daniel Jalkut <jalkut@red- sweater.com> 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 believe there are constants for both Return and Enter keycodes (names escape me as I'm not at home currently).


Those constants should be better than using the numeric keypad constants.

NSCarriageReturnCharacter NSEnterCharacter


___________________________________________________________ Ricky A. Sharp mailto:email@hidden Instant Interactive(tm) http://www.instantinteractive.com

_______________________________________________
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


References: 
 >Return vs Enter (From: Alan Dail <email@hidden>)
 >Re: Return vs Enter (From: Daniel Jalkut <email@hidden>)
 >Re: Return vs Enter (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Data-loss issue when quitting a CoreData-document-based application
  • Next by Date: mlRE: NSScrollView problems when scaling an NSTextView
  • Previous by thread: Re: Return vs Enter
  • Next by thread: Re: Return vs Enter
  • Index(es):
    • Date
    • Thread