diff options
-rw-r--r-- | chrome/views/controls/button/native_button.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/views/controls/button/native_button.cc b/chrome/views/controls/button/native_button.cc index a8c9c53..7a4529b 100644 --- a/chrome/views/controls/button/native_button.cc +++ b/chrome/views/controls/button/native_button.cc @@ -145,10 +145,12 @@ bool NativeButton::AcceleratorPressed(const Accelerator& accelerator) { } void NativeButton::Focus() { - Button::Focus(); // Forward the focus to the wrapper. if (native_wrapper_) native_wrapper_->SetFocus(); + else + Button::Focus(); // Will focus the RootView window (so we still get + // keyboard messages). } //////////////////////////////////////////////////////////////////////////////// |