Index: chrome/browser/ui/views/find_bar_view.cc |
diff --git a/chrome/browser/ui/views/find_bar_view.cc b/chrome/browser/ui/views/find_bar_view.cc |
index 816e93d3c310c6dc39b6dfd3dbc187ed04f957ef..f99dafd20f18b54ec612dacc6fca817c510d9bcf 100644 |
--- a/chrome/browser/ui/views/find_bar_view.cc |
+++ b/chrome/browser/ui/views/find_bar_view.cc |
@@ -406,14 +406,9 @@ void FindBarView::ButtonPressed( |
sender->tag() == FIND_NEXT_TAG, |
false); // Not case sensitive. |
} |
- if (event.IsMouseEvent()) { |
- // If mouse event, we move the focus back to the text-field, so that the |
- // user doesn't have to click on the text field to change the search. We |
- // don't want to do this for keyboard clicks on the button, since the |
- // user is more likely to press FindNext again than change the search |
- // query. |
- find_text_->RequestFocus(); |
- } |
+ // NotifyClick() now takes ui::Event so event can be mouse event or the |
msw
2015/08/27 18:09:02
nit: There is no function named "NotifyClick". Con
Deepak
2015/08/28 04:20:20
Done.
|
+ // key event. Moving focus to find text field. |
+ find_text_->RequestFocus(); |
break; |
case CLOSE_TAG: |
find_bar_host()->GetFindBarController()->EndFindSession( |