[Webkit-unassigned] [Bug 28184] New: JavaScript: keypress not fired with DELETE key

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 11 12:49:23 PDT 2009


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

           Summary: JavaScript: keypress not fired with DELETE key
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: gaddis at apple.com


Created an attachment (id=34583)
 --> (https://bugs.webkit.org/attachment.cgi?id=34583)
test case html file

The scenario:
Event listeners are attached to the document for keydown, keypress, and keyup
events. In the attached file, input_document.html, watch the console for
evidence of the events fired from inside an text input.

When "1"  is pressed:
onkeydown charCode = 0
onkeypress charCode = 49 
onkeyup charCode = 0

When DELETE is pressed:
onkeydown charCode = 0
onkeyup charCode = 0 
(note the missing onkeypress)

Other observations:
This behavior does not change when the listeners are attached to the text
input.
Safari 3 reports all three events: onkeydown, onkeypress, onkeyup when the
DELETE key is pressed.

-- 
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