[Webkit-unassigned] [Bug 99411] New: Incorrect keyIdentifier values are set for numeric keypad keys

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 15 20:31:05 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=99411

           Summary: Incorrect keyIdentifier values are set for numeric
                    keypad keys
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: Windows 7
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Events
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mazda at chromium.org
                CC: dharcourt at chromium.org


(Copied from http://code.google.com/p/chromium/issues/detail?id=155654)

Steps to reproduce:

1) Create an HTML file with the following content:

  <html>                                                                   
    <head>                                                                 
      <script type="text/javascript">                                      
        window.onkeydown = function(e) { console.log(e.keyIdentifier); };     
      </script>                                                               
    </head>                                                                   
  </html>                                                                     

2) Open this file in a Chrome browser window on a non-ChromeOS system, and open the console for that window.

3) Attach a keyboard that has a separate numeric keypad to the computer and press the "1" key on the main part of the keyboard and then the "1" key on the numeric keypad. Note the values listed in the console for each of these key presses.

4) Repeat #2 and #3 with a ChromeOS device.

Expected output:

- U+0031, U+0031, U+0031, U+0031

Actual output:

- U+0031, U+0031, U+0031, U+0041

Reproducibility:

- 100% Reproducible.

Impact:

- Web applications that depend on keyIdentifier to identify keys won't work with numeric keypads.

Additional information:

- "U+0031" is the keyIdentifier for keys that have a "1" glyph. "U+0041" is the keyIdentifier reserved for keys that have an "A" glyph and should not be returned for the numeric keypad "1" (http://www.w3.org/TR/2007/WD-DOM-Level-3-Events-20071221/keyset.html)

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



More information about the webkit-unassigned mailing list