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/view.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/view.cc')
-rw-r--r-- | chrome/views/view.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/views/view.cc b/chrome/views/view.cc index 3a06c3b..59e5b73 100644 --- a/chrome/views/view.cc +++ b/chrome/views/view.cc @@ -1372,9 +1372,8 @@ bool View::IsVisibleInRootView() const { void View::RequestFocus() { RootView* rv = GetRootView(); - if (rv) { + if (rv && IsFocusable()) rv->FocusView(this); - } } void View::WillGainFocus() { |