зеркало из https://github.com/mozilla/pjs.git
Fix 64225, which caused 64138 and other annoyances. r=jag sr=hyatt
This commit is contained in:
Родитель
419e5ee720
Коммит
858a2d663a
|
@ -81,12 +81,20 @@
|
||||||
</method>
|
</method>
|
||||||
</implementation>
|
</implementation>
|
||||||
<handlers>
|
<handlers>
|
||||||
<handler event="command">
|
<handler event="click" button="1">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
if (event.target.localName == "radio")
|
if (event.target.localName == "radio" && !event.target.disabled)
|
||||||
this.selectedItem = event.target;
|
this.selectedItem = event.target;
|
||||||
|
|
||||||
]]>
|
]]>
|
||||||
</handler>
|
</handler>
|
||||||
|
<handler event="keypress" key=" ">
|
||||||
|
<![CDATA[
|
||||||
|
if (event.target.localName == "radio" && !event.target.disabled)
|
||||||
|
this.selectedItem = event.target;
|
||||||
|
|
||||||
|
]]>
|
||||||
|
</handler>
|
||||||
|
|
||||||
<!-- keyboard navigation -->
|
<!-- keyboard navigation -->
|
||||||
<!-- Here's how keyboard navigation works in radio groups on Windows:
|
<!-- Here's how keyboard navigation works in radio groups on Windows:
|
||||||
|
|
|
@ -156,7 +156,8 @@
|
||||||
if (v == 'true') return true; return false;"/>
|
if (v == 'true') return true; return false;"/>
|
||||||
</implementation>
|
</implementation>
|
||||||
<handlers>
|
<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>
|
</handlers>
|
||||||
</binding>
|
</binding>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче