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

Unified Diff: ui/events/keycodes/keyboard_code_conversion_android.cc

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: ui/events/keycodes/keyboard_code_conversion_android.cc
diff --git a/ui/events/keycodes/keyboard_code_conversion_android.cc b/ui/events/keycodes/keyboard_code_conversion_android.cc
index e176a2bfe48267b19e04a545cb4b79aad32bcdd1..30964e021f54a1971d790186ff9839f0e814e32f 100644
--- a/ui/events/keycodes/keyboard_code_conversion_android.cc
+++ b/ui/events/keycodes/keyboard_code_conversion_android.cc
@@ -99,6 +99,7 @@ DomKey GetDomKeyFromAndroidKeycode(int keycode) {
case AKEYCODE_ENVELOPE:
return DomKey::LAUNCH_MAIL;
case AKEYCODE_ENTER:
+ case AKEYCODE_BUTTON_A:
dtapuska 2016/02/09 14:34:38 There is a comment that you didn't remove at the e
return DomKey::ENTER;
case AKEYCODE_DEL:
return DomKey::BACKSPACE;
@@ -462,6 +463,7 @@ KeyboardCode KeyboardCodeFromAndroidKeyCode(int keycode) {
return VKEY_CLEAR;
case AKEYCODE_DPAD_CENTER:
case AKEYCODE_ENTER:
+ case AKEYCODE_BUTTON_A:
return VKEY_RETURN;
case AKEYCODE_SHIFT_LEFT:
return VKEY_LSHIFT;

Powered by Google App Engine
This is Rietveld 408576698