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

Unified Diff: third_party/WebKit/Source/core/html/forms/RadioInputType.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/RadioInputType.cpp
diff --git a/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp b/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
index eca599df57a6362b148961f68780535b40e66d83..6786d8517d866233d5569baf8d72784d19cf0b08 100644
--- a/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/RadioInputType.cpp
@@ -127,7 +127,7 @@ void RadioInputType::handleKeydownEvent(KeyboardEvent* event)
void RadioInputType::handleKeyupEvent(KeyboardEvent* event)
{
const String& key = event->keyIdentifier();
- if (key != "U+0020")
+ if (key != "U+0020" && key != "Enter")
aelias_OOO_until_Jul13 2016/02/10 07:09:21 For some reason, you're changing behavior globally
return;
// If an unselected radio is tabbed into (because the entire group has nothing
// checked, or because of some explicit .focus() call), then allow space to check it.

Powered by Google App Engine
This is Rietveld 408576698