W3C home > Mailing lists > Public > www-svg@w3.org > September 2008

keypress listener implementation inconsistent

From: Rick <graham.rick@gmail.com>
Date: Tue, 16 Sep 2008 11:55:41 -0400
Message-ID: <18569e000809160855v126f532eh26bdf0936911d239@mail.gmail.com>
To: www-svg@w3.org

Testing my moderately complex SVG application on the following:

   Firefox/GNU-Linux/Ubuntu 8.04
   Epiphany/GNU-Linux/Ubuntu 8.04

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.

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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:15 UTC