mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 501496 part.8 Native key event tests should prevent default only when the event is keypress r=smaug
This commit is contained in:
parent
5f1ed1963c
commit
dde8930062
@ -236,7 +236,9 @@ function runKeyEventTests()
|
||||
// Ignore the state changing key events which is fired by the testing event.
|
||||
if (!isStateChangingModifierKeyEvent(e))
|
||||
eventList.push(e);
|
||||
e.preventDefault();
|
||||
if (e.type == "keypress") {
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
|
||||
const SHOULD_DELIVER_NONE = 0x0;
|
||||
|
Loading…
Reference in New Issue
Block a user