[Webkit-unassigned] [Bug 19906] New: bad values for keyIdentifier for symbol keys on Windows

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jul 5 18:56:30 PDT 2008


           Summary: bad values for keyIdentifier for symbol keys on Windows
           Product: WebKit
           Version: 525.x (Safari 3.1)
          Platform: PC
               URL: http://unixpapa.com/js/testkey.html
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jan at unixpapa.com

Event.keyIdentifier gives incorrect values for a few keys under Windows.  The
values returned under OS X are correct.

   key        Windows        OS X
   `~         U+00C0         U+0060
   -_         U+00BD         U+002D
   =+         U+00BB         U+003D
   [{         U+00DB         U+005B
   ]}         U+00DD         U+005D
   \|         U+00DC         U+005C
   ;:         U+00BA         U+003B
   '"         U+00DE         U+0027
   ,<         U+00BC         U+002C
   .>         U+00BE         U+002E
   /?         U+00BF         U+002F

A couple other windows keys also give questionable keyIdentifier values.  The
NumLock key on the keypad gives "U+0090" when it should probably be "NumLock".
The Windows Menu key (the thing between the left "Start" key and the "Ctrl" key
on most windows keyboards, whatever it is called) gives "U+005D" which should
be the value for the ]} key.  I have no idea what that key should return. 
"Select" maybe?

A slight deficiency (not quite a bug) is that the keyLocation values do not
distinguish between left and right shift keys or control keys.  Both shift keys
return values of 0 instead of one returning 1 and the other 2.  I believe this
is true in both Windows and OS X versions.  I don't even know if it is possible
to make that distinction on all platforms.

The URL above points to my key testing script.

I've fairly thoroughly tested the key events in Safari and compared them to
multitudes of other browsers, and have found no other deficiencies in Safari
(leaving aside the textinput event).  Very nice work.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list