| 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_);
|
|
|