When changing selected radio button with arrow keys, prevent the default action

for the key event.  Bug 253299, r=aaronl, sr=bryner


git-svn-id: svn://10.0.0.236/trunk@160329 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-08-04 02:52:50 +00:00
parent f17fbb8285
commit 48b2ead6fc

View File

@@ -1502,6 +1502,9 @@ nsHTMLInputElement::HandleDOMEvent(nsPresContext* aPresContext,
rv = radioContent->HandleDOMEvent(aPresContext, &event,
nsnull, NS_EVENT_FLAG_INIT,
&status);
if (NS_SUCCEEDED(rv)) {
*aEventStatus = nsEventStatus_eConsumeNoDefault;
}
}
}
}