diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 17:45:25 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-08 17:45:25 +0000 |
commit | 4701b9ffa2f8e8ad7dd87691f93712b423741783 (patch) | |
tree | cc248a0aa850e5f4a8c9432aea2a58e7d93934b5 | |
parent | 8098d0b3bfe92cc6cffbfd0b13da9d85e39c2500 (diff) | |
download | chromium_src-4701b9ffa2f8e8ad7dd87691f93712b423741783.zip chromium_src-4701b9ffa2f8e8ad7dd87691f93712b423741783.tar.gz chromium_src-4701b9ffa2f8e8ad7dd87691f93712b423741783.tar.bz2 |
Ensure the previous/next button don't get focused when clicked.
We keep the button focusable so they can be tab traversed.
BUG=9772
TEST=See bug
Review URL: http://codereview.chromium.org/62144
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13364 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/views/find_bar_view.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/views/find_bar_view.cc b/chrome/browser/views/find_bar_view.cc index bfaf958..3930a7e 100644 --- a/chrome/browser/views/find_bar_view.cc +++ b/chrome/browser/views/find_bar_view.cc @@ -433,6 +433,11 @@ void FindBarView::ButtonPressed(views::Button* sender) { find_text_->GetText(), sender->tag() == FIND_NEXT_TAG); } + // Move the focus back to the text-field, we don't want the button + // focused. + // TODO(jcampan): http://crbug.com/9867 we should not change the focus + // when teh button was pressed by pressing a key. + find_text_->RequestFocus(); break; case CLOSE_TAG: container_->GetFindBarController()->EndFindSession(); |