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

Unified Diff: third_party/WebKit/Source/core/html/forms/CheckboxInputType.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/CheckboxInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/CheckboxInputType.cpp b/third_party/WebKit/Source/core/html/forms/CheckboxInputType.cpp
index fee27cc78d5dc78c5a2f4c21417a82dd7aca7aa6..6c3244a7e3c8fd7e4897cc3912c87e40f0ed1c1d 100644
--- a/third_party/WebKit/Source/core/html/forms/CheckboxInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/CheckboxInputType.cpp
@@ -62,7 +62,7 @@ String CheckboxInputType::valueMissingText() const
void CheckboxInputType::handleKeyupEvent(KeyboardEvent* event)
{
const String& key = event->keyIdentifier();
- if (key != "U+0020")
+ if (key != "U+0020" && key != "Enter")
return;
dispatchSimulatedClickIfActive(event);
}

Powered by Google App Engine
This is Rietveld 408576698