diff options
Diffstat (limited to 'dom/html/HTMLButtonElement.cpp')
-rw-r--r-- | dom/html/HTMLButtonElement.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dom/html/HTMLButtonElement.cpp b/dom/html/HTMLButtonElement.cpp index 80df5bc740..e493d1891d 100644 --- a/dom/html/HTMLButtonElement.cpp +++ b/dom/html/HTMLButtonElement.cpp @@ -156,7 +156,11 @@ HTMLButtonElement::IsHTMLFocusable(bool aWithMouse, bool *aIsFocusable, int32_t return true; } - *aIsFocusable = !IsDisabled(); + *aIsFocusable = +#ifdef XP_MACOSX + (!aWithMouse || nsFocusManager::sMouseFocusesFormControl) && +#endif + !IsDisabled(); return false; } |