diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-13 18:27:38 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-13 18:27:38 +0000 |
commit | 830e2069f5c67d74cd4f2720438ea6a9609994c3 (patch) | |
tree | b282e9c8661b9a041c5ae638b1361d9e3b0901d0 /chrome/views/native_button.cc | |
parent | 8ad2ac49bd0bff04d92162f5e215398eb5372cec (diff) | |
download | chromium_src-830e2069f5c67d74cd4f2720438ea6a9609994c3.zip chromium_src-830e2069f5c67d74cd4f2720438ea6a9609994c3.tar.gz chromium_src-830e2069f5c67d74cd4f2720438ea6a9609994c3.tar.bz2 |
Don't focus unfocusable things.
Review URL: http://codereview.chromium.org/20348
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/native_button.cc')
-rw-r--r-- | chrome/views/native_button.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/views/native_button.cc b/chrome/views/native_button.cc index 00aea52..d6db326 100644 --- a/chrome/views/native_button.cc +++ b/chrome/views/native_button.cc @@ -191,8 +191,7 @@ void NativeButton::Init(const std::wstring& label, bool is_default) { void NativeButton::Clicked() { DCHECK(enabled_); // Give the focus to the button. - if (IsFocusable()) - RequestFocus(); + RequestFocus(); if (listener_) listener_->ButtonPressed(this); |