From 48b2ead6fcda4e0cd58927465ec699a4c8dd371a Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Wed, 4 Aug 2004 02:52:50 +0000 Subject: [PATCH] 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 --- mozilla/content/html/content/src/nsHTMLInputElement.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/content/html/content/src/nsHTMLInputElement.cpp b/mozilla/content/html/content/src/nsHTMLInputElement.cpp index 1c21f47b7bd..b0e9cd0cc99 100644 --- a/mozilla/content/html/content/src/nsHTMLInputElement.cpp +++ b/mozilla/content/html/content/src/nsHTMLInputElement.cpp @@ -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; + } } } }