| Index: ui/views/controls/combobox/combobox.cc
|
| diff --git a/ui/views/controls/combobox/combobox.cc b/ui/views/controls/combobox/combobox.cc
|
| index cadbfa49efd367ed131bc4e0438cde90ddbe24d2..24c51702b2d11798c62274c4add4f29ea5629a8b 100644
|
| --- a/ui/views/controls/combobox/combobox.cc
|
| +++ b/ui/views/controls/combobox/combobox.cc
|
| @@ -131,8 +131,11 @@ class TransparentButton : public CustomButton {
|
| ~TransparentButton() override {}
|
|
|
| bool OnMousePressed(const ui::MouseEvent& mouse_event) override {
|
| - if (!UseMd())
|
| - parent()->RequestFocus();
|
| +#if !defined(OS_MACOSX)
|
| + // On Mac, comboboxes do not take focus on mouse click, but on other
|
| + // platforms they do.
|
| + parent()->RequestFocus();
|
| +#endif
|
| return CustomButton::OnMousePressed(mouse_event);
|
| }
|
|
|
|
|