diff options
Diffstat (limited to 'toolkit/content/widgets/dialog.xml')
-rw-r--r-- | toolkit/content/widgets/dialog.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toolkit/content/widgets/dialog.xml b/toolkit/content/widgets/dialog.xml index aff1621965..d83570ac0f 100644 --- a/toolkit/content/widgets/dialog.xml +++ b/toolkit/content/widgets/dialog.xml @@ -422,11 +422,15 @@ if (!event.defaultPrevented) this.cancelDialog(); </handler> +#ifdef XP_MACOSX + <handler event="keypress" key="." modifiers="meta" phase="capturing" action="this.cancelDialog();"/> +#else <handler event="focus" phase="capturing"> var btn = this.getButton(this.defaultButton); if (btn) btn.setAttribute("default", event.originalTarget == btn || !(event.originalTarget instanceof Components.interfaces.nsIDOMXULButtonElement)); </handler> +#endif </handlers> </binding> |