> But on Windows, they are physically two different > keys, but they generate the same key code. Both are > called Enter, but (IIRC) they both generate Chr(13).
Just in case anyone is reading closely: I believe that "key code" is the wrong term here, in RB lingo. Key codes are what you pass to Keyboard.KeyName, and they identify physical locations on a given keyboard. The quote above is about the strings that you get in a KeyDown event, which originate with keycodes but are translated by the OS and/or RB into keyboard-independent character values, so that for the most part, you don't have to care about physical key positions. On Windows, Enter on the main keypad has keycode 36, Enter on the numeric keypad has keycode 76, and if either key is pressed, both are reported as being down; they can't be tested separately in REALbasic. (Which is why I'm still scratching my head over the reported behavior.) Mac laptops have a third keycode for the Enter key (52); I'm not sure if this is the case for Windows. lj _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
