Commit a0edc14c authored by ellyjones's avatar ellyjones Committed by Commit bot

views: make comboboxes request focus when clicked

They should behave this way on non-Mac, even in Harmony mode.

BUG=669778

Review-Url: https://codereview.chromium.org/2739893003
Cr-Commit-Position: refs/heads/master@{#456086}
parent 263e504e
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment