diff options
Diffstat (limited to 'ui/views/controls/button/menu_button.cc')
-rw-r--r-- | ui/views/controls/button/menu_button.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/views/controls/button/menu_button.cc b/ui/views/controls/button/menu_button.cc index 614fd5e..dd7e489 100644 --- a/ui/views/controls/button/menu_button.cc +++ b/ui/views/controls/button/menu_button.cc @@ -173,7 +173,8 @@ const char* MenuButton::GetClassName() const { } bool MenuButton::OnMousePressed(const ui::MouseEvent& event) { - RequestFocus(); + if (request_focus_on_press()) + RequestFocus(); if (state() != STATE_DISABLED && ShouldEnterPushedState(event) && HitTestPoint(event.location())) { TimeDelta delta = TimeTicks::Now() - menu_closed_time_; |