Bug 501496 part.8 Native key event tests should prevent default only when the event is keypress r=smaug

This commit is contained in:
Masayuki Nakano 2013-07-25 15:09:29 +09:00
parent 5f1ed1963c
commit dde8930062

View File

@ -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;