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

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

Issue 1680143002: Simulate click through gamepad BUTTON_A (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/BaseCheckableInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/BaseCheckableInputType.cpp b/third_party/WebKit/Source/core/html/forms/BaseCheckableInputType.cpp
index f30b2e6a4069c1732346c1da9a168e1ad5512ce6..b244f25010e196601169e0bee6f133527afb8e6b 100644
--- a/third_party/WebKit/Source/core/html/forms/BaseCheckableInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/BaseCheckableInputType.cpp
@@ -60,7 +60,7 @@ void BaseCheckableInputType::appendToFormData(FormData& formData) const
void BaseCheckableInputType::handleKeydownEvent(KeyboardEvent* event)
{
const String& key = event->keyIdentifier();
dtapuska 2016/02/09 14:29:03 As per the similar comment before; keyIdentifier w
- if (key == "U+0020") {
+ if (key == "U+0020" || key == "Enter") {
element().setActive(true);
// No setDefaultHandled(), because IE dispatches a keypress in this case
// and the caller will only dispatch a keypress if we don't call setDefaultHandled().

Powered by Google App Engine
This is Rietveld 408576698