1 # Copyright 2015 The Chromium Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 """Android KeyEvent constants. 6 7 http://developer.android.com/reference/android/view/KeyEvent.html 8 """ 9 10 KEYCODE_BACK = 4 11 12 KEYCODE_0 = 7 13 KEYCODE_1 = 8 14 KEYCODE_2 = 9 15 KEYCODE_3 = 10 16 KEYCODE_4 = 11 17 KEYCODE_5 = 12 18 KEYCODE_6 = 13 19 KEYCODE_7 = 14 20 KEYCODE_8 = 15 21 KEYCODE_9 = 16 22 23 KEYCODE_DPAD_RIGHT = 22 24 25 KEYCODE_POWER = 26 26 27 KEYCODE_A = 29 28 KEYCODE_B = 30 29 KEYCODE_C = 31 30 KEYCODE_D = 32 31 KEYCODE_E = 33 32 KEYCODE_F = 34 33 KEYCODE_G = 35 34 KEYCODE_H = 36 35 KEYCODE_I = 37 36 KEYCODE_J = 38 37 KEYCODE_K = 39 38 KEYCODE_L = 40 39 KEYCODE_M = 41 40 KEYCODE_N = 42 41 KEYCODE_O = 43 42 KEYCODE_P = 44 43 KEYCODE_Q = 45 44 KEYCODE_R = 46 45 KEYCODE_S = 47 46 KEYCODE_T = 48 47 KEYCODE_U = 49 48 KEYCODE_V = 50 49 KEYCODE_W = 51 50 KEYCODE_X = 52 51 KEYCODE_Y = 53 52 KEYCODE_Z = 54 53 54 KEYCODE_PERIOD = 56 55 56 KEYCODE_SPACE = 62 57 58 KEYCODE_ENTER = 66 59 KEYCODE_DEL = 67 60 61 KEYCODE_MENU = 82 62 63 KEYCODE_APP_SWITCH = 187 64