Appium bit by bit: Android keycode key value

Source: Internet
Author: User
Tags appium

Transferred from: http://blog.csdn.net/crisschan/article/details/50419963

-Phone Key
键名                  描述       键值KEYCODE_CALL        拨号键     5KEYCODE_ENDCALL     挂机键     6KEYCODE_HOME        按键Home      3KEYCODE_MENU        菜单键     82KEYCODE_BACK        返回键     4KEYCODE_SEARCH      搜索键     84KEYCODE_CAMERA      拍照键     27KEYCODE_FOCUS       拍照对焦键   80KEYCODE_POWER       电源键     26KEYCODE_NOTIFICATION 通知键        83KEYCODE_MUTE        话筒静音键   91KEYCODE_VOLUME_MUTE 扬声器静音键  164KEYCODE_VOLUME_UP   音量增加键   24KEYCODE_VOLUME_DOWN 音量减小键   25
-Control keys
键名                          描述          键值KEYCODE_ENTER               回车键         66KEYCODE_ESCAPE              ESC键            111KEYCODE_DPAD_CENTER         导航键 确定键     23KEYCODE_DPAD_UP             导航键 向上      19KEYCODE_DPAD_DOWN           导航键 向下      20KEYCODE_DPAD_LEFT           导航键 向左      21KEYCODE_DPAD_RIGHT          导航键 向右      22KEYCODE_MOVE_HOME           光标移动到开始键    122KEYCODE_MOVE_END            光标移动到末尾键    123KEYCODE_PAGE_UP             向上翻页键       92KEYCODE_PAGE_DOWN           向下翻页键       93KEYCODE_DEL                 退格键         67KEYCODE_FORWARD_DEL         删除键         112KEYCODE_INSERT              插入键         124KEYCODE_TAB                 Tab键            61KEYCODE_NUM_LOCK            小键盘锁            143KEYCODE_CAPS_LOCK           大写锁定键       115KEYCODE_BREAK               Break/Pause键    121KEYCODE_SCROLL_LOCK         滚动锁定键       116KEYCODE_ZOOM_IN             放大键         168KEYCODE_ZOOM_OUT            缩小键         169
-Key Combinations
键名              描述KEYCODE_ALT_LEFT    Alt+LeftKEYCODE_ALT_RIGHT   Alt+RightKEYCODE_CTRL_LEFT   Control+LeftKEYCODE_CTRL_RIGHT  Control+RightKEYCODE_SHIFT_LEFT  Shift+LeftKEYCODE_SHIFT_RIGHT Shift+Right
-Basic
键名      描述  键值KEYCODE_0   按键‘0‘   7KEYCODE_1   按键‘1‘   8KEYCODE_2   按键‘2‘   9KEYCODE_3   按键‘3‘   10KEYCODE_4   按键‘4‘   11KEYCODE_5   按键‘5‘   12KEYCODE_6   按键‘6‘   13KEYCODE_7   按键‘7‘   14KEYCODE_8   按键‘8‘   15KEYCODE_9   按键‘9‘   16KEYCODE_A   按键‘A‘   29KEYCODE_B   按键‘B‘   30KEYCODE_C   按键‘C‘   31KEYCODE_D   按键‘D‘   32KEYCODE_E   按键‘E‘   33KEYCODE_F   按键‘F‘   34KEYCODE_G   按键‘G‘   35KEYCODE_H   按键‘H‘   36KEYCODE_I   按键‘I‘   37KEYCODE_J   按键‘J‘   38KEYCODE_K   按键‘K‘   39KEYCODE_L   按键‘L‘   40KEYCODE_M   按键‘M‘   41KEYCODE_N   按键‘N‘   42KEYCODE_O   按键‘O‘   43KEYCODE_P   按键‘P‘   44KEYCODE_Q   按键‘Q‘   45KEYCODE_R   按键‘R‘   46KEYCODE_S   按键‘S‘   47KEYCODE_T   按键‘T‘   48KEYCODE_U   按键‘U‘   49KEYCODE_V   按键‘V‘   50KEYCODE_W   按键‘W‘   51KEYCODE_X   按键‘X‘   52KEYCODE_Y   按键‘Y‘   53KEYCODE_Z   按键‘Z‘   54
-Symbols
键名                      描述KEYCODE_PLUS                按键‘+‘KEYCODE_MINUS               按键‘-‘KEYCODE_STAR                按键‘*‘KEYCODE_SLASH               按键‘/‘KEYCODE_EQUALS              按键‘=‘KEYCODE_AT                  按键‘@‘KEYCODE_POUND               按键‘#‘KEYCODE_APOSTROPHE          按键‘‘‘ (单引号)KEYCODE_BACKSLASH           按键‘\‘KEYCODE_COMMA               按键‘,‘KEYCODE_PERIOD              按键‘.‘KEYCODE_LEFT_BRACKET        按键‘[‘KEYCODE_RIGHT_BRACKET       按键‘]‘KEYCODE_SEMICOLON           按键‘;‘KEYCODE_GRAVE               按键‘`‘KEYCODE_SPACE               空格键
-Small keyboard
键名                              描述KEYCODE_NUMPAD_0                    小键盘按键‘0‘KEYCODE_NUMPAD_1                    小键盘按键‘1‘KEYCODE_NUMPAD_2                    小键盘按键‘2‘KEYCODE_NUMPAD_3                    小键盘按键‘3‘KEYCODE_NUMPAD_4                    小键盘按键‘4‘KEYCODE_NUMPAD_5                    小键盘按键‘5‘KEYCODE_NUMPAD_6                    小键盘按键‘6‘KEYCODE_NUMPAD_7                    小键盘按键‘7‘KEYCODE_NUMPAD_8                    小键盘按键‘8‘KEYCODE_NUMPAD_9                    小键盘按键‘9‘KEYCODE_NUMPAD_ADD                  小键盘按键‘+‘KEYCODE_NUMPAD_SUBTRACT             小键盘按键‘-‘KEYCODE_NUMPAD_MULTIPLY             小键盘按键‘*‘KEYCODE_NUMPAD_DIVIDE               小键盘按键‘/‘KEYCODE_NUMPAD_EQUALS               小键盘按键‘=‘KEYCODE_NUMPAD_COMMA                小键盘按键‘,‘KEYCODE_NUMPAD_DOT                  小键盘按键‘.‘KEYCODE_NUMPAD_LEFT_PAREN           小键盘按键‘(‘KEYCODE_NUMPAD_RIGHT_PAREN          小键盘按键‘)‘KEYCODE_NUMPAD_ENTER                小键盘按键回车
-Function keys
键名                                  描述KEYCODE_F1                              按键F1KEYCODE_F2                              按键F2KEYCODE_F3                              按键F3KEYCODE_F4                              按键F4KEYCODE_F5                              按键F5KEYCODE_F6                              按键F6KEYCODE_F7                              按键F7KEYCODE_F8                              按键F8KEYCODE_F9                              按键F9KEYCODE_F10                             按键F10KEYCODE_F11                             按键F11KEYCODE_F12                             按键F12
-Multimedia keys
键名                                  描述KEYCODE_MEDIA_PLAY 多媒体键                 播放KEYCODE_MEDIA_STOP 多媒体键                 停止KEYCODE_MEDIA_PAUSE 多媒体键            暂停KEYCODE_MEDIA_PLAY_PAUSE 多媒体键       播放/暂停KEYCODE_MEDIA_FAST_FORWARD 多媒体键         快进KEYCODE_MEDIA_REWIND 多媒体键           快退KEYCODE_MEDIA_NEXT 多媒体键                 下一首KEYCODE_MEDIA_PREVIOUS 多媒体键             上一首KEYCODE_MEDIA_CLOSE 多媒体键            关闭KEYCODE_MEDIA_EJECT 多媒体键            弹出KEYCODE_MEDIA_RECORD 多媒体键           录音
-Handle button
键名              描述KEYCODE_BUTTON_1 通用游戏手柄按钮 #1KEYCODE_BUTTON_2 通用游戏手柄按钮 #2KEYCODE_BUTTON_3 通用游戏手柄按钮 #3KEYCODE_BUTTON_4 通用游戏手柄按钮 #4KEYCODE_BUTTON_5 通用游戏手柄按钮 #5KEYCODE_BUTTON_6 通用游戏手柄按钮 #6KEYCODE_BUTTON_7 通用游戏手柄按钮 #7KEYCODE_BUTTON_8 通用游戏手柄按钮 #8KEYCODE_BUTTON_9 通用游戏手柄按钮 #9KEYCODE_BUTTON_10 通用游戏手柄按钮 #10KEYCODE_BUTTON_11 通用游戏手柄按钮 #11KEYCODE_BUTTON_12 通用游戏手柄按钮 #12KEYCODE_BUTTON_13 通用游戏手柄按钮 #13KEYCODE_BUTTON_14 通用游戏手柄按钮 #14KEYCODE_BUTTON_15 通用游戏手柄按钮 #15KEYCODE_BUTTON_16 通用游戏手柄按钮 #16KEYCODE_BUTTON_A 游戏手柄按钮 AKEYCODE_BUTTON_B 游戏手柄按钮 BKEYCODE_BUTTON_C 游戏手柄按钮 CKEYCODE_BUTTON_X 游戏手柄按钮 XKEYCODE_BUTTON_Y 游戏手柄按钮 YKEYCODE_BUTTON_Z 游戏手柄按钮 ZKEYCODE_BUTTON_L1 游戏手柄按钮 L1KEYCODE_BUTTON_L2 游戏手柄按钮 L2KEYCODE_BUTTON_R1 游戏手柄按钮 R1KEYCODE_BUTTON_R2 游戏手柄按钮 R2KEYCODE_BUTTON_MODE 游戏手柄按钮 ModeKEYCODE_BUTTON_SELECT 游戏手柄按钮 SelectKEYCODE_BUTTON_START 游戏手柄按钮 StartKEYCODE_BUTTON_THUMBL Left Thumb ButtonKEYCODE_BUTTON_THUMBR Right Thumb Button
-Unknown origin
Key Name Description keycode_num Key number modifierkeycode_info button Infokeycode_app_switch button APP Switchkeycode_bookmark key Bookmarkkeycode_avr_input Button A/V Receiver inputkeycode_avr_power key A/V Receive R powerkeycode_captions key Toggle Captionskeycode_channel_down key Channel DOWNKEYCODE_CHANNEL_UP key channel up Keycode_clear button clearkeycode_dvr button Dvrkeycode_envelope button ENVELOPE Special functionkeycode_exp Lorer Key Explorer Special Functionkeycode_forward button Forwardkeycode_forward_del button FORWARD deletekeycode_f       Unction key Function Modifierkeycode_guide button Guidekeycode_headsethook button headset Hookkeycode_meta_left Press the left Meta Modifierkeycode_meta_right button right meta modifierkeycode_pictsymbols button picture Symbols Modifierke Ycode_prog_blue key BLUE "programmable" keycode_prog_green button GREEN "programmable" keycode_prog_red key RED "PR Ogrammable "Keycode_prog_YELLOW button YELLOW "programmable" keycode_settings button Settingskeycode_soft_left button SOFT leftkeycode_soft_right Key soft rightkeycode_stb_input button Set-top-box inputkeycode_stb_power button Set-top-box Powerkeycode_switch_char SET button Switch Charset modifierkeycode_sym key symbol MODIFIERKEYCODE_SYSRQ Key System Request/print Sc          Reenkeycode_tv button tvkeycode_tv_input button TV inputkeycode_tv_power button TV Powerkeycode_window Key Windowkeycode_unknown Unknown button

Appium bit by bit: Android keycode key value

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.