Bug 311053 XUL frames should respect preventDefault() [e.g. when menus are open] r=Enn sr=jst

This commit is contained in:
Neil Rashbrook
2009-02-27 10:48:25 +00:00
parent c4ac5271a0
commit ed135a547f
8 changed files with 38 additions and 1 deletions

View File

@@ -79,6 +79,11 @@ nsButtonBoxFrame::HandleEvent(nsPresContext* aPresContext,
nsGUIEvent* aEvent,
nsEventStatus* aEventStatus)
{
NS_ENSURE_ARG_POINTER(aEventStatus);
if (nsEventStatus_eConsumeNoDefault == *aEventStatus) {
return NS_OK;
}
switch (aEvent->message) {
case NS_KEY_DOWN:
if (NS_KEY_EVENT == aEvent->eventStructType) {