Skip navigation.
 
mlRe: catching command-enter keyDown events in a table view
FROM : Will Mason
DATE : Thu Nov 04 18:21:23 2004

> >     unsigned short keyPress = [event keyCode];

If you take the key code from the event, you're creating a big headache
for yourself, since key codes are hardware dependent. Are you sure you
want to keep track of the key code for your desired key presses for
every keyboard that exists on every Mac in the world? Wouldn't it be
better to let Cocoa do that for you, and use the [NSEvent characters]
message instead? That way you get to work with hardware independent
Unicode values.

Just a thought,
Will

Related mailsAuthorDate
mlcatching command-enter keyDown events in a table view Salánki Benjámin Nov 4, 13:23
mlRe: catching command-enter keyDown events in a table view Todd Ransom Nov 4, 16:46
mlRe: catching command-enter keyDown events in a table view August Trometer Nov 4, 17:40
mlRe: catching command-enter keyDown events in a table view Will Mason Nov 4, 18:21
mlRe: catching command-enter keyDown events in a table view Todd Ransom Nov 4, 19:16
mlRe: catching command-enter keyDown events in a table view Harilaos Skiadas Nov 4, 19:41