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

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

Issue 62129: Find should allow keyboard scrolling while Find bar has focus (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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/edit_keyword_controller.h ('k') | chrome/browser/views/find_bar_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/edit_keyword_controller.cc
===================================================================
--- chrome/browser/views/edit_keyword_controller.cc (revision 13375)
+++ chrome/browser/views/edit_keyword_controller.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -161,11 +161,12 @@
UpdateImageViews();
}
-void EditKeywordController::HandleKeystroke(TextField* sender,
+bool EditKeywordController::HandleKeystroke(TextField* sender,
UINT message,
TCHAR key,
UINT repeat_count,
UINT flags) {
+ return false;
}
void EditKeywordController::Init() {
@@ -328,7 +329,7 @@
bool EditKeywordController::IsKeywordValid() const {
std::wstring keyword = keyword_tf_->GetText();
if (keyword.empty())
- return true; // Always allow no keyword.
+ return true; // Always allow no keyword.
const TemplateURL* turl_with_keyword =
profile_->GetTemplateURLModel()->GetTemplateURLForKeyword(keyword);
return (turl_with_keyword == NULL || turl_with_keyword == template_url_);
« no previous file with comments | « chrome/browser/views/edit_keyword_controller.h ('k') | chrome/browser/views/find_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698