diff --git a/layout/xul/base/src/nsMenuFrame.cpp b/layout/xul/base/src/nsMenuFrame.cpp index 16bb8e978f8..adf8a22d871 100644 --- a/layout/xul/base/src/nsMenuFrame.cpp +++ b/layout/xul/base/src/nsMenuFrame.cpp @@ -283,7 +283,7 @@ nsMenuFrame::HandleEvent(nsIPresContext* aPresContext, nsEventStatus* aEventStatus) { NS_ENSURE_ARG_POINTER(aEventStatus); - *aEventStatus = nsEventStatus_eConsumeDoDefault; + *aEventStatus = nsEventStatus_eConsumeNoDefault; if (aEvent->message == NS_KEY_PRESS && !IsDisabled()) { nsKeyEvent* keyEvent = (nsKeyEvent*)aEvent; @@ -398,6 +398,8 @@ nsMenuFrame::HandleEvent(nsIPresContext* aPresContext, mOpenTimer->Init(this, menuDelay, NS_PRIORITY_HIGHEST); } } + else + *aEventStatus = nsEventStatus_eConsumeDoDefault; return NS_OK; }