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)
Tracking
()
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.
Comment 1•25 years ago
|
||
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
Updated•23 years ago
|
QA Contact: madhur → rakeshmishra
Updated•23 years ago
|
QA Contact: rakeshmishra → trix
Updated•7 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•