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

Unified Diff: third_party/WebKit/Source/core/html/forms/SearchInputType.cpp

Issue 2045603002: Handle the "key" field as opposed to keyIdentifier field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove initialization of the view 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: third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp b/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
index 54c33c7d5cc8d5ea8f069b2491cbb7dd4c236686..e12b515dbc7d77bec1d41b7730a99addc9590e26 100644
--- a/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/SearchInputType.cpp
@@ -94,8 +94,8 @@ void SearchInputType::handleKeydownEvent(KeyboardEvent* event)
return;
}
- const String& key = event->keyIdentifier();
- if (key == "U+001B") {
+ const String& key = event->key();
+ if (key == "Escape") {
element().setValueForUser("");
element().onSearch();
event->setDefaultHandled();

Powered by Google App Engine
This is Rietveld 408576698