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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/events/keycodes/keyboard_code_conversion_android.h" 5 #include "ui/events/keycodes/keyboard_code_conversion_android.h"
6 6
7 #include <android/keycodes.h> 7 #include <android/keycodes.h>
8 8
9 namespace ui { 9 namespace ui {
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return VKEY_TAB; 70 return VKEY_TAB;
71 case AKEYCODE_CLEAR: 71 case AKEYCODE_CLEAR:
72 return VKEY_CLEAR; 72 return VKEY_CLEAR;
73 case AKEYCODE_DPAD_CENTER: 73 case AKEYCODE_DPAD_CENTER:
74 case AKEYCODE_ENTER: 74 case AKEYCODE_ENTER:
75 return VKEY_RETURN; 75 return VKEY_RETURN;
76 case AKEYCODE_SHIFT_LEFT: 76 case AKEYCODE_SHIFT_LEFT:
77 return VKEY_LSHIFT; 77 return VKEY_LSHIFT;
78 case AKEYCODE_SHIFT_RIGHT: 78 case AKEYCODE_SHIFT_RIGHT:
79 return VKEY_RSHIFT; 79 return VKEY_RSHIFT;
80 // Back will serve as escape, although we may not have access to it.
81 case AKEYCODE_BACK: 80 case AKEYCODE_BACK:
82 return VKEY_ESCAPE; 81 return VKEY_BROWSER_BACK;
83 case AKEYCODE_SPACE: 82 case AKEYCODE_SPACE:
84 return VKEY_SPACE; 83 return VKEY_SPACE;
85 case AKEYCODE_MOVE_HOME: 84 case AKEYCODE_MOVE_HOME:
86 return VKEY_HOME; 85 return VKEY_HOME;
87 case AKEYCODE_DPAD_LEFT: 86 case AKEYCODE_DPAD_LEFT:
88 return VKEY_LEFT; 87 return VKEY_LEFT;
89 case AKEYCODE_DPAD_UP: 88 case AKEYCODE_DPAD_UP:
90 return VKEY_UP; 89 return VKEY_UP;
91 case AKEYCODE_DPAD_RIGHT: 90 case AKEYCODE_DPAD_RIGHT:
92 return VKEY_RIGHT; 91 return VKEY_RIGHT;
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 case AKEYCODE_CHANNEL_UP: 297 case AKEYCODE_CHANNEL_UP:
299 return VKEY_PRIOR; 298 return VKEY_PRIOR;
300 case AKEYCODE_CHANNEL_DOWN: 299 case AKEYCODE_CHANNEL_DOWN:
301 return VKEY_NEXT; 300 return VKEY_NEXT;
302 default: 301 default:
303 return VKEY_UNKNOWN; 302 return VKEY_UNKNOWN;
304 } 303 }
305 } 304 }
306 305
307 } // namespace ui 306 } // namespace ui
OLDNEW
« 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