Closed Bug 103370 Opened 23 years ago Closed 23 years ago

Out of order keypress event

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 54035

People

(Reporter: clayton, Assigned: joki)

Details

Reported by Douglas Crockford crock@veilnetworks.com The keypress event is sent too late. I attached a keypress handler to an <input> field. d.addEventListener('keypress', keypress, false); function keypress(e) { alert('keypress'); } I type a character. The character is displayed in the input field, and THEN the alert is popped. At this point, the event has arrived too late to allow for any filtering or special handling. This is similar to the delayed change event error, in which submit is fired before change.
*** This bug has been marked as a duplicate of 54035 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
QA Contact: madhur → rakeshmishra
QA Contact: rakeshmishra → trix
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.