Re: Detecting the Enter Key

2008-12-10 Thread Alex Heinz
On Dec 10, 2008, at 2:39 PM, Eric Gorr wrote: On Dec 10, 2008, at 2:28 PM, Michael Ash wrote: On Wed, Dec 10, 2008 at 12:43 PM, Eric Gorr <[EMAIL PROTECTED]> wrote: One way to check to see if the enter key has been pressed is to: [theEvent keyCode] == 0x04C where 0x04C is the keyCode cor

Re: Detecting the Enter Key

2008-12-10 Thread jmunson
I'm certain he means: Physical key: actual key on keyboard that was pressed (may be independent of the letter/word/symbol on the key face) Logical key: this would map to the letter/word/symbol on the key face, regardless of physical placement on the board HTH, Peace, Love, and Light,

Re: Detecting the Enter Key

2008-12-10 Thread Eric Gorr
On Dec 10, 2008, at 2:28 PM, Michael Ash wrote: On Wed, Dec 10, 2008 at 12:43 PM, Eric Gorr <[EMAIL PROTECTED]> wrote: One way to check to see if the enter key has been pressed is to: [theEvent keyCode] == 0x04C where 0x04C is the keyCode corresponding to the enter key. (Is there an Apple d

Re: Detecting the Enter Key

2008-12-10 Thread Michael Ash
On Wed, Dec 10, 2008 at 12:43 PM, Eric Gorr <[EMAIL PROTECTED]> wrote: > One way to check to see if the enter key has been pressed is to: > > [theEvent keyCode] == 0x04C > > where 0x04C is the keyCode corresponding to the enter key. > (Is there an Apple defined constant for this key code?) > > > >

Re: Detecting the Enter Key

2008-12-10 Thread Benjamin Dobson
I would go for the second one. I would guess that the second one would pick up all the various Enter keys, whereas the first would only pick up a single key. The second also looks much more elegant to me. I do not have any experience with this; I am merely saying what looks best from my poi

Re: Detecting the Enter Key

2008-12-10 Thread Ken Thomases
On Dec 10, 2008, at 11:43 AM, Eric Gorr wrote: One way to check to see if the enter key has been pressed is to: [theEvent keyCode] == 0x04C where 0x04C is the keyCode corresponding to the enter key. (Is there an Apple defined constant for this key code?) kVK_ANSI_KeypadEnter but it's only d

Detecting the Enter Key

2008-12-10 Thread Eric Gorr
One way to check to see if the enter key has been pressed is to: [theEvent keyCode] == 0x04C where 0x04C is the keyCode corresponding to the enter key. (Is there an Apple defined constant for this key code?) Another way, found at: http://developer.apple.com/samplecode/TrackBall/listing9.html