Closed Bug 69157 Opened 25 years ago Closed 25 years ago

Keypress event handling return wrong code.

Categories

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

All
Windows NT
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 62878

People

(Reporter: hyvu, Assigned: joki)

Details

Keypress event handling return 0 for both <Enter> and <BackSpace> when they are pressed. To reproduce this: Create a form with an input text box, onkeypress event, call catchEnter function. function catchEnter(keypressed) { var key=keypressed.which; alert key; if (key == 13) { g_saveAsForm.submit(); } } Expected: - Return 13 for <Enter> (Same as NS 4.x or IE) and other code for different keys.
Duplicate of "event.which returns 0 for CR instead of 13" *** This bug has been marked as a duplicate of 62878 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
QA contact updated
QA Contact: gerardok → madhur
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.