bryner%netscape.com 3f7b51593b Make Enter/Return always activate the default button on mac, even if a different button is focused. Bug 132720, r=hewitt, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@121129 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-09 00:04:37 +00:00

36 lines
1.3 KiB
XML

<?xml version="1.0"?>
<bindings id="platformDialogBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xbl="http://www.mozilla.org/xbl">
<binding id="dialog" extends="chrome://global/content/bindings/dialog.xml#dialog">
<content>
<xul:vbox class="box-inherit dialog-content-box" flex="1">
<children/>
</xul:vbox>
<xul:hbox class="dialog-button-box"
xbl:inherits="pack=buttonpack,align=buttonalign,dir=buttondir,orient=buttonorient">
<xul:button dlgtype="disclosure" class="dialog-button" hidden="true"/>
<xul:button dlgtype="help" class="dialog-button" hidden="true"/>
<xul:button dlgtype="extra2" class="dialog-button" hidden="true" label=""/>
<xul:button dlgtype="extra1" class="dialog-button" hidden="true" label=""/>
<xul:spacer flex="1"/>
<xul:button dlgtype="cancel" class="dialog-button"/>
<xul:button dlgtype="accept" class="dialog-button"/>
</xul:hbox>
</content>
<implementation>
<field name="enterDefaultAlways">true</field>
</implementation>
<handlers>
<handler event="keypress" key="." modifiers="meta" phase="capturing" action="this.cancelDialog();"/>
</handlers>
</binding>
</bindings>