Chromium Code Reviews| Index: ui/views/controls/combobox/combobox.cc |
| diff --git a/ui/views/controls/combobox/combobox.cc b/ui/views/controls/combobox/combobox.cc |
| index dc7797936b73c56c043e2d2873986603ab04804f..2792505b826752d8f87119b3590924fddc401056 100644 |
| --- a/ui/views/controls/combobox/combobox.cc |
| +++ b/ui/views/controls/combobox/combobox.cc |
| @@ -110,11 +110,13 @@ class TransparentButton : public CustomButton { |
| : CustomButton(listener) { |
| SetAnimationDuration(LabelButton::kHoverAnimationDurationMs); |
| SetFocusBehavior(FocusBehavior::NEVER); |
| + set_notify_action(NOTIFY_ON_PRESS); |
|
tapted
2016/06/16 00:05:13
We need to restrict this just to Mac - I think the
spqchan
2016/06/22 02:16:38
Done.
|
| } |
| ~TransparentButton() override {} |
| bool OnMousePressed(const ui::MouseEvent& mouse_event) override { |
| parent()->RequestFocus(); |
|
tapted
2016/06/16 00:05:13
This actually isn't needed, CustomButton has a set
spqchan
2016/06/22 02:16:38
Done.
|
| + CustomButton::OnMousePressed(mouse_event); |
| return true; |
| } |