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

Unified Diff: chrome/browser/views/find_bar_host.cc

Issue 220019: A refactor broke the find bar...characters like ! and ( ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « chrome/browser/views/find_bar_host.h ('k') | chrome/browser/views/find_bar_host_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/find_bar_host.cc
===================================================================
--- chrome/browser/views/find_bar_host.cc (revision 26955)
+++ chrome/browser/views/find_bar_host.cc (working copy)
@@ -355,6 +355,11 @@
bool FindBarHost::MaybeForwardKeystrokeToWebpage(
const views::Textfield::Keystroke& key_stroke) {
+ if (!ShouldForwardKeystrokeToWebpageNative(key_stroke)) {
+ // Native implementation not to forward these events.
Finnur 2009/09/23 22:21:40 nit: not -> says not ?
+ return false;
+ }
+
switch (key_stroke.GetKeyboardCode()) {
case base::VKEY_DOWN:
case base::VKEY_UP:
« no previous file with comments | « chrome/browser/views/find_bar_host.h ('k') | chrome/browser/views/find_bar_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698