fix for the simplest part of 30878, right click checks checkboxes.

This commit is contained in:
ben%netscape.com 2000-08-31 02:13:00 +00:00
parent 9948be5ee3
commit e748b9960a
2 changed files with 5 additions and 4 deletions

View File

@ -44,7 +44,6 @@
{
if( groupElements[i] != aDOMElement && groupElements[i].checked )
{
dump("*** unchecking element " + i + "\n");
groupElements[i].checked = false;
groupElements[i].removeAttribute( "checked" );
}
@ -59,7 +58,9 @@
<![CDATA[
try
{
if( !event.target.disabled && event.target.localName == "radio" )
if (!event.target.disabled &&
event.target.localName == "radio" &&
event.button == 1)
this.selectedItem = event.target;
}
catch(e)
@ -71,7 +72,7 @@
<![CDATA[
try
{
if( !event.target.disabled && event.target.localName == "radio" )
if (!event.target.disabled && event.target.localName == "radio")
this.selectedItem = event.target;
}
catch(e)

View File

@ -152,7 +152,7 @@
if (v == 'true') return true; return false;"/>
</interface>
<handlers>
<handler type="click" value="if (!this.disabled) this.checked = !this.checked;"/>
<handler type="click" value="if (!this.disabled && this.button == 1) this.checked = !this.checked;"/>
<handler type="keypress" key=" " value="if (!this.disabled) this.checked = !this.checked;"/>
</handlers>
</binding>