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