Bug 1096146, Patch 1: No default actions of keydown event should be made if mozbrowserbeforekeydown event is defaultPrevented, r=smaug.

This commit is contained in:
Gina Yeh 2014-11-21 17:47:55 +08:00
parent 5a56e32a74
commit c47886ea59

View File

@ -7193,6 +7193,7 @@ PresShell::HandleKeyboardEvent(nsINode* aTarget,
// Dispatch after events to partial items.
if (defaultPrevented) {
*aStatus = nsEventStatus_eConsumeNoDefault;
DispatchAfterKeyboardEventInternal(chain, aEvent,
aEvent.mFlags.mDefaultPrevented, chainIndex);