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)

x86
Windows 2000
defect

Tracking

()

RESOLVED DUPLICATE of bug 167145
Future

People

(Reporter: pza, Assigned: trudelle)

Details

(Keywords: testcase)

Attachments

(1 file)

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.
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
->navigator (assuming the binding doesn't honour preventDefault as it should, although it could be a even problem)
Assignee: joki → trudelle
Target Milestone: --- → Future
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.
Attached file testcase
testcase
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P4
testcase
Status: ASSIGNED → NEW
Keywords: testcase
*** 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.

Attachment

General

Created:
Updated:
Size: