diff options
author | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 20:58:01 +0000 |
---|---|---|
committer | finnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-03 20:58:01 +0000 |
commit | a071e653c8e2b9b77c412600c3d35de814541527 (patch) | |
tree | 4f6edf175b8090a8140d511b72ae0879fbacfec2 /chrome/browser/views/first_run_bubble.cc | |
parent | d78f40f3543cd057d845625d1abce9cd79b0682c (diff) | |
download | chromium_src-a071e653c8e2b9b77c412600c3d35de814541527.zip chromium_src-a071e653c8e2b9b77c412600c3d35de814541527.tar.gz chromium_src-a071e653c8e2b9b77c412600c3d35de814541527.tar.bz2 |
Fix 9867: Activating the previous/next buttons with the keyboard in the find bar should not change the focus.
Add param const Event& event to ButtonPressed, so that recipients can find out more about the event that generated the ButtonPress message.
BUG=9687
TEST=Open www.google.com and open Find-in-page, search for 'e'. Press FindNext button with mouse and note that the focus should be on the textfield. Now press Tab twice to put focus on the FindNext button and press SpaceBar a few times. Note that the focus should stay on the FindNext button.
Review URL: http://codereview.chromium.org/188016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25367 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/first_run_bubble.cc')
-rw-r--r-- | chrome/browser/views/first_run_bubble.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/first_run_bubble.cc b/chrome/browser/views/first_run_bubble.cc index b79c665..257a944 100644 --- a/chrome/browser/views/first_run_bubble.cc +++ b/chrome/browser/views/first_run_bubble.cc @@ -123,7 +123,7 @@ class FirstRunBubbleView : public FirstRunBubbleViewBase { keep_button_->RequestFocus(); } - virtual void ButtonPressed(views::Button* sender) { + virtual void ButtonPressed(views::Button* sender, const views::Event& event) { bubble_window_->Close(); if (change_button_ == sender) { Browser* browser = BrowserList::GetLastActive(); @@ -257,7 +257,7 @@ class FirstRunOEMBubbleView : public FirstRunBubbleViewBase { // No button in oem_bubble to request focus. } - virtual void ButtonPressed(views::Button* sender) { + virtual void ButtonPressed(views::Button* sender, const views::Event& event) { bubble_window_->Close(); } |