Closed
Bug 147865
Opened 23 years ago
Closed 23 years ago
Unable to cancel onkeydown event when backspace is pressed
Categories
(Core :: DOM: Events, defect, P4)
Tracking
()
RESOLVED
DUPLICATE
of bug 167145
Future
People
(Reporter: pza, Assigned: trudelle)
Details
(Keywords: testcase)
Attachments
(1 file)
|
219 bytes,
text/html
|
Details |
I'm not sure if this is a bug or not, as I couldn't find the relevent
documentation in the DOM reference, but in recent builds of Mozlla (or at least
in RC3) preventDefault will not cancel the backspace button being pressed from a
onkeydown event. Even if preventDefault is called, the previous page is loaded.
| Reporter | ||
Comment 1•23 years ago
|
||
Just found that the DOM 3 Event spec says that onkeydown and onkeyup are cancelable
http://www.w3.org/TR/2002/WD-DOM-Level-3-Events-20020208/events.html#Events-eventgroupings
Comment 2•23 years ago
|
||
->navigator (assuming the binding doesn't honour preventDefault as it should,
although it could be a even problem)
Assignee: joki → trudelle
| Assignee | ||
Updated•23 years ago
|
Target Milestone: --- → Future
| Reporter | ||
Comment 3•23 years ago
|
||
I've tried this in Mozilla 0.9.8 with win95, and the problem also occurs. I
havn't been able to reproduce it under linux. In my build of mozilla (Redhat
7.3's 0.9.9 build), the backspace key doesn't do anything anyway.
Comment 4•23 years ago
|
||
Comment 5•23 years ago
|
||
testcase
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P4
Comment 7•23 years ago
|
||
*** This bug has been marked as a duplicate of 167145 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•