mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 120527 Dialog fix to make default button not appear default while another button has focus
adding missing cdata markings
This commit is contained in:
parent
a741c7a433
commit
df16362861
@ -344,9 +344,11 @@
|
||||
this.cancelDialog();
|
||||
</handler>
|
||||
<handler event="focus" phase="capturing">
|
||||
<![CDATA[
|
||||
var btn = this.getButton(this.defaultButton);
|
||||
if (btn && !/Mac/.test(navigator.platform))
|
||||
btn.setAttribute("default", event.originalTarget == btn || !(event.originalTarget instanceof Components.interfaces.nsIDOMXULButtonElement));
|
||||
]]>
|
||||
</handler>
|
||||
</handlers>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user