Fix 64225, which caused 64138 and other annoyances. r=jag sr=hyatt

git-svn-id: svn://10.0.0.236/trunk@84630 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
blakeross%telocity.com
2001-01-09 01:37:15 +00:00
parent 84f05f2b89
commit 5e4501907f
2 changed files with 13 additions and 4 deletions

View File

@@ -81,12 +81,20 @@
</method>
</implementation>
<handlers>
<handler event="command">
<handler event="click" button="1">
<![CDATA[
if (event.target.localName == "radio")
this.selectedItem = event.target;
if (event.target.localName == "radio" && !event.target.disabled)
this.selectedItem = event.target;
]]>
</handler>
<handler event="keypress" key=" ">
<![CDATA[
if (event.target.localName == "radio" && !event.target.disabled)
this.selectedItem = event.target;
]]>
</handler>
<!-- keyboard navigation -->
<!-- Here's how keyboard navigation works in radio groups on Windows:

View File

@@ -156,7 +156,8 @@
if (v == 'true') return true; return false;"/>
</implementation>
<handlers>
<handler event="command" action="this.checked = !this.checked;"/>
<handler event="click" button="1" action="this.checked = !this.checked;"/>
<handler event="keypress" key=" " action="this.checked = !this.checked;"/>
</handlers>
</binding>