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

Unified Diff: third_party/WebKit/Source/core/html/forms/TextFieldInputType.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/TextFieldInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
index ee6539e924919aa4c9de6c53962dc843355ed8a1..cb8ebf0b6362e30e4015099ed45a23b925755ae1 100644
--- a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
@@ -210,10 +210,10 @@ void TextFieldInputType::handleKeydownEventForSpinButton(KeyboardEvent* event)
{
if (element().isDisabledOrReadOnly())
return;
- const String& key = event->keyIdentifier();
- if (key == "Up")
+ const String& key = event->key();
+ if (key == "ArrowUp")
spinButtonStepUp();
- else if (key == "Down" && !event->altKey())
+ else if (key == "ArrowDown" && !event->altKey())
spinButtonStepDown();
else
return;

Powered by Google App Engine
This is Rietveld 408576698