[Webkit-unassigned] [Bug 35170] New: DOM listeners get wrong keycodes for some keys

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 19 13:13:24 PST 2010


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

           Summary: DOM listeners get wrong keycodes for some keys
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: grant_gayed at ca.ibm.com


- observed with WebKitGTK 1.1.21

- view the html page at the bottom, which just prints key event keyCode values
- with NumLock OFF, note that pressing '0' or '.' on the keypad give events
with keyCode == 0
  -> I think these should be 45 and 46 respectively
- press Shift+PrintScreen
  -> the resulting event's keyCode is 42, but it seems like it should be 44
(comparing with IE and Mozilla)

<html>
<head>
<script language="JavaScript">
function keyhandler(e) {
  alert(e.type);
  alert(e.keyCode);
}
function init() {
  document.onkeydown = keyhandler;
  document.onkeypress = keyhandler;
  document.onkeyup = keyhandler;
}
</script>
</head>
<body onLoad="init()">
<textarea rows="2" cols="20">
</textarea>
</body>
</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