commit | 830e2069f5c67d74cd4f2720438ea6a9609994c3 | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Fri Feb 13 18:27:38 2009 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Fri Feb 13 18:27:38 2009 |
tree | b282e9c8661b9a041c5ae638b1361d9e3b0901d0 | |
parent | 8ad2ac49bd0bff04d92162f5e215398eb5372cec [diff] [blame] |
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
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 @@ void View::RequestFocus() { RootView* rv = GetRootView(); - if (rv) { + if (rv && IsFocusable()) rv->FocusView(this); - } } void View::WillGainFocus() {