keypress listener implementation inconsistent

Testing my moderately complex SVG application on the following:

   Firefox/GNU-Linux/Ubuntu 8.04
   Epiphany/GNU-Linux/Ubuntu 8.04
   Opera/Windows2000
   Safari/Mac
   Chrome/WindowsXP

It works fine.  That is until I touch the keyboard.

I have developed in Firefox.  I look at evt.keyCode and evt.charCode
to switch on keys.

For the letter 'x'

keycode  charcode  browser
    0            120        Firefox
    0            120        Epiphany
 120      undefined   Opera
 120           120        Safari
 120           120        Chrome

I was hoping to make my application work in the three major browsers,
but this is a showstopper.  I am not willing to build three separate
keyboard interfaces.

Is there a way that I don't know about to get a consistent keystroke interface?

I know that firefox behaves the same on all three platforms, so I'm
demoing for it.  I'd really love to be able to add the other two major
browsers to demonstrate cross platform / client compatibility.  It
doesn't really matter as far as my project is concerned, I can dictate
FireFox, but I'd like to be able to show a bit of solidarity on the
open standards side.

I'm not sure there is a standard, I haven't looked lately.  I'm sure
someone will elaborate.

I'll post a link when the app is scalable.

--
Cheers!
Rick

Received on Tuesday, 16 September 2008 15:56:16 UTC