mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
fix for the simplest part of 30878, right click checks checkboxes.
This commit is contained in:
parent
9948be5ee3
commit
e748b9960a
@ -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)
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user