keycodes??

Phil Davis davis.phil at comcast.net
Fri Nov 18 16:27:46 EST 2005


Sarah Reichelt wrote:
> On 11/19/05, Charles Hartman <charles.hartman at conncoll.edu> wrote:
> 
>>Sometimes I need to use rawKeyDown handlers, which receive a keyCode
>>parameter. Two questions: is there a table of these somewhere? and,
>>are these cross-platform? (If I have to use two tables, and wrap
>>everything in an "if platform" structure, I'm going to be very sad.)
>>
> 
> 
> Here is a link to a test stack I wrote to show you the key codes for
> various keys: <http://www.troz.net/Rev/tutorials/KeyCoder.rev.gz>
> 
> I have always assumed they are cross-platform and don't remember
> hearing of any problems.


In my testing, I've seen platform differences in the keycodes of some 
numeric keys (possibly uppercase?) and I think also the 10-keypad keys 
(though I'm not certain about that one). I've never compared non-numeric 
keycodes across platforms so I can't speak to that.

Phil Davis

> 
> Cheers,
> Sarah




More information about the use-livecode mailing list