Module: Cukunity::Android::KeyboardInput::KeyCodes

Defined in:
lib/cukunity/drivers/android/keycodes.rb

Constant Summary collapse

KEYCODE_UNKNOWN =

Key code constant: Unknown key code.

0
KEYCODE_SOFT_LEFT =

Key code constant: Soft Left key. Usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom left of the display.

1
KEYCODE_SOFT_RIGHT =

Key code constant: Soft Right key. Usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom right of the display.

2
KEYCODE_HOME =

Key code constant: Home key. This key is handled by the framework and is never delivered to applications.

3
KEYCODE_BACK =

Key code constant: Back key.

4
KEYCODE_CALL =

Key code constant: Call key.

5
KEYCODE_ENDCALL =

Key code constant: End Call key.

6
KEYCODE_0 =

Key code constant: ‘0’ key.

7
KEYCODE_1 =

Key code constant: ‘1’ key.

8
KEYCODE_2 =

Key code constant: ‘2’ key.

9
KEYCODE_3 =

Key code constant: ‘3’ key.

10
KEYCODE_4 =

Key code constant: ‘4’ key.

11
KEYCODE_5 =

Key code constant: ‘5’ key.

12
KEYCODE_6 =

Key code constant: ‘6’ key.

13
KEYCODE_7 =

Key code constant: ‘7’ key.

14
KEYCODE_8 =

Key code constant: ‘8’ key.

15
KEYCODE_9 =

Key code constant: ‘9’ key.

16
KEYCODE_STAR =

Key code constant: ‘*’ key.

17
KEYCODE_POUND =

Key code constant: ‘#’ key.

18
KEYCODE_DPAD_UP =

Key code constant: Directional Pad Up key. May also be synthesized from trackball motions.

19
KEYCODE_DPAD_DOWN =

Key code constant: Directional Pad Down key. May also be synthesized from trackball motions.

20
KEYCODE_DPAD_LEFT =

Key code constant: Directional Pad Left key. May also be synthesized from trackball motions.

21
KEYCODE_DPAD_RIGHT =

Key code constant: Directional Pad Right key. May also be synthesized from trackball motions.

22
KEYCODE_DPAD_CENTER =

Key code constant: Directional Pad Center key. May also be synthesized from trackball motions.

23
KEYCODE_VOLUME_UP =

Key code constant: Volume Up key. Adjusts the speaker volume up.

24
KEYCODE_VOLUME_DOWN =

Key code constant: Volume Down key. Adjusts the speaker volume down.

25
KEYCODE_POWER =

Key code constant: Power key.

26
KEYCODE_CAMERA =

Key code constant: Camera key. Used to launch a camera application or take pictures.

27
KEYCODE_CLEAR =

Key code constant: Clear key.

28
KEYCODE_A =

Key code constant: ‘A’ key.

29
KEYCODE_B =

Key code constant: ‘B’ key.

30
KEYCODE_C =

Key code constant: ‘C’ key.

31
KEYCODE_D =

Key code constant: ‘D’ key.

32
KEYCODE_E =

Key code constant: ‘E’ key.

33
KEYCODE_F =

Key code constant: ‘F’ key.

34
KEYCODE_G =

Key code constant: ‘G’ key.

35
KEYCODE_H =

Key code constant: ‘H’ key.

36
KEYCODE_I =

Key code constant: ‘I’ key.

37
KEYCODE_J =

Key code constant: ‘J’ key.

38
KEYCODE_K =

Key code constant: ‘K’ key.

39
KEYCODE_L =

Key code constant: ‘L’ key.

40
KEYCODE_M =

Key code constant: ‘M’ key.

41
KEYCODE_N =

Key code constant: ‘N’ key.

42
KEYCODE_O =

Key code constant: ‘O’ key.

43
KEYCODE_P =

Key code constant: ‘P’ key.

44
KEYCODE_Q =

Key code constant: ‘Q’ key.

45
KEYCODE_R =

Key code constant: ‘R’ key.

46
KEYCODE_S =

Key code constant: ‘S’ key.

47
KEYCODE_T =

Key code constant: ‘T’ key.

48
KEYCODE_U =

Key code constant: ‘U’ key.

49
KEYCODE_V =

Key code constant: ‘V’ key.

50
KEYCODE_W =

Key code constant: ‘W’ key.

51
KEYCODE_X =

Key code constant: ‘X’ key.

52
KEYCODE_Y =

Key code constant: ‘Y’ key.

53
KEYCODE_Z =

Key code constant: ‘Z’ key.

54
KEYCODE_COMMA =

Key code constant: ‘,’ key.

55
KEYCODE_PERIOD =

Key code constant: ‘.’ key.

56
KEYCODE_ALT_LEFT =

Key code constant: Left Alt modifier key.

57
KEYCODE_ALT_RIGHT =

Key code constant: Right Alt modifier key.

58
KEYCODE_SHIFT_LEFT =

Key code constant: Left Shift modifier key.

59
KEYCODE_SHIFT_RIGHT =

Key code constant: Right Shift modifier key.

60
KEYCODE_TAB =

Key code constant: Tab key.

61
KEYCODE_SPACE =

Key code constant: Space key.

62
KEYCODE_SYM =

Key code constant: Symbol modifier key. Used to enter alternate symbols.

63
KEYCODE_EXPLORER =

Key code constant: Explorer special function key. Used to launch a browser application.

64
KEYCODE_ENVELOPE =

Key code constant: Envelope special function key. Used to launch a mail application.

65
KEYCODE_ENTER =

Key code constant: Enter key.

66
KEYCODE_DEL =

Key code constant: Backspace key. Deletes characters before the insertion point, unlike #KEYCODE_FORWARD_DEL.

67
KEYCODE_GRAVE =

Key code constant: ‘`’ (backtick) key.

68
KEYCODE_MINUS =

Key code constant: ‘-’.

69
KEYCODE_EQUALS =

Key code constant: ‘=’ key.

70
KEYCODE_LEFT_BRACKET =

Key code constant: ‘[’ key.

71
KEYCODE_RIGHT_BRACKET =

Key code constant: ‘]’ key.

72
KEYCODE_BACKSLASH =

Key code constant: ‘' key.

73
KEYCODE_SEMICOLON =

Key code constant: ” key.

74
KEYCODE_APOSTROPHE =

Key code constant: ”‘ (apostrophe) key.

75
KEYCODE_SLASH =

Key code constant: ‘/’ key.

76
KEYCODE_AT =

Key code constant: ‘@’ key.

77
KEYCODE_NUM =

Key code constant: Number modifier key. Used to enter numeric symbols. This key is not Num Lock it is more like #KEYCODE_ALT_LEFT and is interpreted as an ALT key by android.text.method.MetaKeyKeyListener.

78
KEYCODE_HEADSETHOOK =

Key code constant: Headset Hook key. Used to hang up calls and stop media.

79
KEYCODE_FOCUS =

Key code constant: Camera Focus key. Used to focus the camera.

80
KEYCODE_PLUS =

Key code constant: ‘+’ key.

81
KEYCODE_MENU =

Key code constant: Menu key.

82
KEYCODE_NOTIFICATION =

Key code constant: Notification key.

83
KEYCODE_SEARCH =

Key code constant: Search key.

84
KEYCODE_MEDIA_PLAY_PAUSE =

Key code constant: Play/Pause media key.

85
KEYCODE_MEDIA_STOP =

Key code constant: Stop media key.

86
KEYCODE_MEDIA_NEXT =

Key code constant: Play Next media key.

87
KEYCODE_MEDIA_PREVIOUS =

Key code constant: Play Previous media key.

88
KEYCODE_MEDIA_REWIND =

Key code constant: Rewind media key.

89
KEYCODE_MEDIA_FAST_FORWARD =

Key code constant: Fast Forward media key.

90
KEYCODE_MUTE =

Key code constant: Mute key. Mutes the microphone, unlike #KEYCODE_VOLUME_MUTE.

91
KEYCODE_PAGE_UP =

Key code constant: Page Up key.

92
KEYCODE_PAGE_DOWN =

Key code constant: Page Down key.

93
KEYCODE_PICTSYMBOLS =

Key code constant: Picture Symbols modifier key. Used to switch symbol sets (Emoji, Kao-moji).

94
KEYCODE_SWITCH_CHARSET =

Key code constant: Switch Charset modifier key. Used to switch character sets (Kanji, Katakana).

95
KEYCODE_BUTTON_A =

Key code constant: A Button key. On a game controller, the A button should be either the button labeled A or the first button on the upper row of controller buttons.

96
KEYCODE_BUTTON_B =

Key code constant: B Button key. On a game controller, the B button should be either the button labeled B or the second button on the upper row of controller buttons.

97
KEYCODE_BUTTON_C =

Key code constant: C Button key. On a game controller, the C button should be either the button labeled C or the third button on the upper row of controller buttons.

98
KEYCODE_BUTTON_X =

Key code constant: X Button key. On a game controller, the X button should be either the button labeled X or the first button on the lower row of controller buttons.

99
KEYCODE_BUTTON_Y =

Key code constant: Y Button key. On a game controller, the Y button should be either the button labeled Y or the second button on the lower row of controller buttons.

100
KEYCODE_BUTTON_Z =

Key code constant: Z Button key. On a game controller, the Z button should be either the button labeled Z or the third button on the lower row of controller buttons.

101
KEYCODE_BUTTON_L1 =

Key code constant: L1 Button key. On a game controller, the L1 button should be either the button labeled L1 (or L) or the top left trigger button.

102
KEYCODE_BUTTON_R1 =

Key code constant: R1 Button key. On a game controller, the R1 button should be either the button labeled R1 (or R) or the top right trigger button.

103
KEYCODE_BUTTON_L2 =

Key code constant: L2 Button key. On a game controller, the L2 button should be either the button labeled L2 or the bottom left trigger button.

104
KEYCODE_BUTTON_R2 =

Key code constant: R2 Button key. On a game controller, the R2 button should be either the button labeled R2 or the bottom right trigger button.

105
KEYCODE_BUTTON_THUMBL =

Key code constant: Left Thumb Button key. On a game controller, the left thumb button indicates that the left (or only) joystick is pressed.

106
KEYCODE_BUTTON_THUMBR =

Key code constant: Right Thumb Button key. On a game controller, the right thumb button indicates that the right joystick is pressed.

107
KEYCODE_BUTTON_START =

Key code constant: Start Button key. On a game controller, the button labeled Start.

108
KEYCODE_BUTTON_SELECT =

Key code constant: Select Button key. On a game controller, the button labeled Select.

109
KEYCODE_BUTTON_MODE =

Key code constant: Mode Button key. On a game controller, the button labeled Mode.

110
KEYCODE_ESCAPE =

Key code constant: Escape key.

111
KEYCODE_FORWARD_DEL =

Key code constant: Forward Delete key. Deletes characters ahead of the insertion point, unlike #KEYCODE_DEL.

112
KEYCODE_CTRL_LEFT =

Key code constant: Left Control modifier key.

113
KEYCODE_CTRL_RIGHT =

Key code constant: Right Control modifier key.

114
KEYCODE_CAPS_LOCK =

Key code constant: Caps Lock key.

115
KEYCODE_SCROLL_LOCK =

Key code constant: Scroll Lock key.

116
KEYCODE_META_LEFT =

Key code constant: Left Meta modifier key.

117
KEYCODE_META_RIGHT =

Key code constant: Right Meta modifier key.

118
KEYCODE_FUNCTION =

Key code constant: Function modifier key.

119
KEYCODE_SYSRQ =

Key code constant: System Request / Print Screen key.

120
KEYCODE_BREAK =

Key code constant: Break / Pause key.

121
KEYCODE_MOVE_HOME =

Key code constant: Home Movement key. Used for scrolling or moving the cursor around to the start of a line or to the top of a list.

122
KEYCODE_MOVE_END =

Key code constant: End Movement key. Used for scrolling or moving the cursor around to the end of a line or to the bottom of a list.

123
KEYCODE_INSERT =

Key code constant: Insert key. Toggles insert / overwrite edit mode.

124
KEYCODE_FORWARD =

Key code constant: Forward key. Navigates forward in the history stack. Complement of #KEYCODE_BACK.

125
KEYCODE_MEDIA_PLAY =

Key code constant: Play media key.

126
KEYCODE_MEDIA_PAUSE =

Key code constant: Pause media key.

127
KEYCODE_MEDIA_CLOSE =

Key code constant: Close media key. May be used to close a CD tray, for example.

128
KEYCODE_MEDIA_EJECT =

Key code constant: Eject media key. May be used to eject a CD tray, for example.

129
KEYCODE_MEDIA_RECORD =

Key code constant: Record media key.

130
KEYCODE_F1 =

Key code constant: F1 key.

131
KEYCODE_F2 =

Key code constant: F2 key.

132
KEYCODE_F3 =

Key code constant: F3 key.

133
KEYCODE_F4 =

Key code constant: F4 key.

134
KEYCODE_F5 =

Key code constant: F5 key.

135
KEYCODE_F6 =

Key code constant: F6 key.

136
KEYCODE_F7 =

Key code constant: F7 key.

137
KEYCODE_F8 =

Key code constant: F8 key.

138
KEYCODE_F9 =

Key code constant: F9 key.

139
KEYCODE_F10 =

Key code constant: F10 key.

140
KEYCODE_F11 =

Key code constant: F11 key.

141
KEYCODE_F12 =

Key code constant: F12 key.

142
KEYCODE_NUM_LOCK =

Key code constant: Num Lock key. This is the Num Lock key it is different from #KEYCODE_NUM. This key alters the behavior of other keys on the numeric keypad.

143
KEYCODE_NUMPAD_0 =

Key code constant: Numeric keypad ‘0’ key.

144
KEYCODE_NUMPAD_1 =

Key code constant: Numeric keypad ‘1’ key.

145
KEYCODE_NUMPAD_2 =

Key code constant: Numeric keypad ‘2’ key.

146
KEYCODE_NUMPAD_3 =

Key code constant: Numeric keypad ‘3’ key.

147
KEYCODE_NUMPAD_4 =

Key code constant: Numeric keypad ‘4’ key.

148
KEYCODE_NUMPAD_5 =

Key code constant: Numeric keypad ‘5’ key.

149
KEYCODE_NUMPAD_6 =

Key code constant: Numeric keypad ‘6’ key.

150
KEYCODE_NUMPAD_7 =

Key code constant: Numeric keypad ‘7’ key.

151
KEYCODE_NUMPAD_8 =

Key code constant: Numeric keypad ‘8’ key.

152
KEYCODE_NUMPAD_9 =

Key code constant: Numeric keypad ‘9’ key.

153
KEYCODE_NUMPAD_DIVIDE =

Key code constant: Numeric keypad ‘/’ key (for division).

154
KEYCODE_NUMPAD_MULTIPLY =

Key code constant: Numeric keypad ‘*’ key (for multiplication).

155
KEYCODE_NUMPAD_SUBTRACT =

Key code constant: Numeric keypad ‘-’ key (for subtraction).

156
KEYCODE_NUMPAD_ADD =

Key code constant: Numeric keypad ‘+’ key (for addition).

157
KEYCODE_NUMPAD_DOT =

Key code constant: Numeric keypad ‘.’ key (for decimals or digit grouping).

158
KEYCODE_NUMPAD_COMMA =

Key code constant: Numeric keypad ‘,’ key (for decimals or digit grouping).

159
KEYCODE_NUMPAD_ENTER =

Key code constant: Numeric keypad Enter key.

160
KEYCODE_NUMPAD_EQUALS =

Key code constant: Numeric keypad ‘=’ key.

161
KEYCODE_NUMPAD_LEFT_PAREN =

Key code constant: Numeric keypad ‘(’ key.

162
KEYCODE_NUMPAD_RIGHT_PAREN =

Key code constant: Numeric keypad ‘)’ key.

163
KEYCODE_VOLUME_MUTE =

Key code constant: Volume Mute key. Mutes the speaker, unlike #KEYCODE_MUTE. This key should normally be implemented as a toggle such that the first press mutes the speaker and the second press restores the original volume.

164
KEYCODE_INFO =

Key code constant: Info key. Common on TV remotes to show additional information related to what is currently being viewed.

165
KEYCODE_CHANNEL_UP =

Key code constant: Channel up key. On TV remotes, increments the television channel.

166
KEYCODE_CHANNEL_DOWN =

Key code constant: Channel down key. On TV remotes, decrements the television channel.

167
KEYCODE_ZOOM_IN =

Key code constant: Zoom in key.

168
KEYCODE_ZOOM_OUT =

Key code constant: Zoom out key.

169
KEYCODE_TV =

Key code constant: TV key. On TV remotes, switches to viewing live TV.

170
KEYCODE_WINDOW =

Key code constant: Window key. On TV remotes, toggles picture-in-picture mode or other windowing functions.

171
KEYCODE_GUIDE =

Key code constant: Guide key. On TV remotes, shows a programming guide.

172
KEYCODE_DVR =

Key code constant: DVR key. On some TV remotes, switches to a DVR mode for recorded shows.

173
KEYCODE_BOOKMARK =

Key code constant: Bookmark key. On some TV remotes, bookmarks content or web pages.

174
KEYCODE_CAPTIONS =

Key code constant: Toggle captions key. Switches the mode for closed-captioning text, for example during television shows.

175
KEYCODE_SETTINGS =

Key code constant: Settings key. Starts the system settings activity.

176
KEYCODE_TV_POWER =

Key code constant: TV power key. On TV remotes, toggles the power on a television screen.

177
KEYCODE_TV_INPUT =

Key code constant: TV input key. On TV remotes, switches the input on a television screen.

178
KEYCODE_STB_POWER =

Key code constant: Set-top-box power key. On TV remotes, toggles the power on an external Set-top-box.

179
KEYCODE_STB_INPUT =

Key code constant: Set-top-box input key. On TV remotes, switches the input mode on an external Set-top-box.

180
KEYCODE_AVR_POWER =

Key code constant: A/V Receiver power key. On TV remotes, toggles the power on an external A/V Receiver.

181
KEYCODE_AVR_INPUT =

Key code constant: A/V Receiver input key. On TV remotes, switches the input mode on an external A/V Receiver.

182
KEYCODE_PROG_RED =

Key code constant: Red “programmable” key. On TV remotes, acts as a contextual/programmable key.

183
KEYCODE_PROG_GREEN =

Key code constant: Green “programmable” key. On TV remotes, actsas a contextual/programmable key.

184
KEYCODE_PROG_YELLOW =

Key code constant: Yellow “programmable” key. On TV remotes, acts as a contextual/programmable key.

185
KEYCODE_PROG_BLUE =

Key code constant: Blue “programmable” key. On TV remotes, acts as a contextual/programmable key.

186
KEYCODE_APP_SWITCH =

Key code constant: App switch key. Should bring up the application switcher dialog.

187
KEYCODE_BUTTON_1 =

Key code constant: Generic Game Pad Button #1.

188
KEYCODE_BUTTON_2 =

Key code constant: Generic Game Pad Button #2.

189
KEYCODE_BUTTON_3 =

Key code constant: Generic Game Pad Button #3.

190
KEYCODE_BUTTON_4 =

Key code constant: Generic Game Pad Button #4.

191
KEYCODE_BUTTON_5 =

Key code constant: Generic Game Pad Button #5.

192
KEYCODE_BUTTON_6 =

Key code constant: Generic Game Pad Button #6.

193
KEYCODE_BUTTON_7 =

Key code constant: Generic Game Pad Button #7.

194
KEYCODE_BUTTON_8 =

Key code constant: Generic Game Pad Button #8.

195
KEYCODE_BUTTON_9 =

Key code constant: Generic Game Pad Button #9.

196
KEYCODE_BUTTON_10 =

Key code constant: Generic Game Pad Button #10.

197
KEYCODE_BUTTON_11 =

Key code constant: Generic Game Pad Button #11.

198
KEYCODE_BUTTON_12 =

Key code constant: Generic Game Pad Button #12.

199
KEYCODE_BUTTON_13 =

Key code constant: Generic Game Pad Button #13.

200
KEYCODE_BUTTON_14 =

Key code constant: Generic Game Pad Button #14.

201
KEYCODE_BUTTON_15 =

Key code constant: Generic Game Pad Button #15.

202
KEYCODE_BUTTON_16 =

Key code constant: Generic Game Pad Button #16.

203
KEYCODE_LANGUAGE_SWITCH =

Key code constant: Language Switch key. Toggles the current input language such as switching between English and Japanese on a QWERTY keyboard. On some devices, the same function may be performed by pressing Shift+Spacebar.

204
KEYCODE_MANNER_MODE =

Key code constant: Manner Mode key. Toggles silent or vibrate mode on and off to make the device behave more politely in certain settings such as on a crowded train. On some devices, the key may only operate when long-pressed.

205
KEYCODE_3D_MODE =

Key code constant: 3D Mode key. Toggles the display between 2D and 3D mode.

206
KEYCODE_CONTACTS =

Key code constant: Contacts special function key. Used to launch an address book application.

207
KEYCODE_CALENDAR =

Key code constant: Calendar special function key. Used to launch a calendar application.

208
KEYCODE_MUSIC =

Key code constant: Music special function key. Used to launch a music player application.

209
KEYCODE_CALCULATOR =

Key code constant: Calculator special function key. Used to launch a calculator application.

210