Closed
Bug 131880
Opened 22 years ago
Closed 22 years ago
[experimental build] onkeydown and onkeypress not working as desired for textarea form control
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: madhur, Assigned: joki)
Details
Attachments
(1 file)
635 bytes,
text/html
|
Details |
win2000 - experimental build put together byu tom pixley on 2002-03-18 1. open attached testcase. 2. enter something in the textarea controls. expected: in the first textarea control - you should see only "onkeypress event " in the secondt textarea control - you should see only "onkeydown event " actual: you will notice that an extra character, other than expected, will be displayed each time you type something in the control. I do not see this happening in 03/18 commercial build.
Reporter | ||
Comment 1•22 years ago
|
||
Assignee | ||
Comment 2•22 years ago
|
||
Nope, these are both good. The functionality change is intentional so that the character is enterered after script handlers have all fired. Thus the script handler sets the value and then the browser enters the new character. The character entry can now be cancelled as a result by calling preventDefault() within the handler. IE has the same event sequence.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Updated•5 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
•