Open
Bug 406752
Opened 17 years ago
Updated 1 month ago
Esc key kan not be cancelled
Categories
(Core :: DOM: Events, defect, P5)
Tracking
()
UNCONFIRMED
People
(Reporter: robinpelgrim, Unassigned)
Details
Attachments
(1 file)
558 bytes,
text/html
|
Details |
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 2.0.50727) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b2pre) Gecko/2007120305 Minefield/3.0b2pre preventDefault (on keydown event) does not work for Esc key Reproducible: Always Steps to Reproduce: Example will be attached (later)
Comment 1•17 years ago
|
||
Is this a regression from FF 2.0?
Reporter | ||
Comment 2•17 years ago
|
||
The example shows the right behaviour for pressing the tab key by showing "by tab value" and preventing tabbing, it shows the wrong behaviour for pressing the escape key by (in the end) not showing "my cancel value not shown" (I think the default esc action is still performed).
Reporter | ||
Comment 3•17 years ago
|
||
It's not working in FF 2.0 either, Anyway for me it is important that it works in FF 3, I can not find any workaround.
Reporter | ||
Comment 4•17 years ago
|
||
I debugged the code and it turned out that nsAutoCompleteController::HandleEscape(PRBool *_retval) is reached when pressing the esc key. When setting autocomplete="off" for the input, the preventDefault works as expected (this is a workaround for me). So probably the nsAutoCompleteController doesn't handle 'preventDefault' properly...
Comment 5•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•