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

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

Issue 1095483003: Makes AKEYCODE_BACK map to VKEY_BROWSER_BACK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b7bdc830b102358d0cdc8756e345139d63dca550..96724600c158fe9c81fdc1e03b213382cd48e309 100644
--- a/ui/events/keycodes/keyboard_code_conversion_android.cc
+++ b/ui/events/keycodes/keyboard_code_conversion_android.cc
@@ -77,9 +77,8 @@ KeyboardCode KeyboardCodeFromAndroidKeyCode(int keycode) {
return VKEY_LSHIFT;
case AKEYCODE_SHIFT_RIGHT:
return VKEY_RSHIFT;
- // Back will serve as escape, although we may not have access to it.
case AKEYCODE_BACK:
- return VKEY_ESCAPE;
+ return VKEY_BROWSER_BACK;
case AKEYCODE_SPACE:
return VKEY_SPACE;
case AKEYCODE_MOVE_HOME:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698