Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: chrome/browser/ui/views/find_bar_view.cc

Issue 2078953003: Remove find bar focus redirection on mouse events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove focus redirection altogether; update FindInPageTest. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 8e74295faea968c688fe5799ed19196e93683040..7ff6b561d857fabb00781b00222af6b663cf4b50 100644
--- a/chrome/browser/ui/views/find_bar_view.cc
+++ b/chrome/browser/ui/views/find_bar_view.cc
@@ -426,11 +426,6 @@ void FindBarView::ButtonPressed(
sender->id() == VIEW_ID_FIND_IN_PAGE_NEXT_BUTTON,
false); // Not case sensitive.
}
-
- if (event.IsMouseEvent()) {
- // Move focus to the find textfield.
- find_text_->RequestFocus();
- }
break;
case VIEW_ID_FIND_IN_PAGE_CLOSE_BUTTON:
find_bar_host()->GetFindBarController()->EndFindSession(

Powered by Google App Engine
This is Rietveld 408576698