精华内容
下载资源
问答
  • keyCode

    2021-02-26 13:42:00
    相关keyCode字母按键的keyCode大键盘数字的keyCode小键盘按键的keyCodeFx相关按键keyCodex其他按键的keyCode所有keyCode 字母按键的keyCode keycode 65 = a A keycode 66 = b B keycode 67 = c C keycode 68 = d D ...

    字母按键的keyCode

    keycode 65 = a A
    keycode 66 = b B
    keycode 67 = c C
    keycode 68 = d D
    keycode 69 = e E
    keycode 70 = f F
    keycode 71 = g G
    keycode 72 = h H
    keycode 73 = i I
    keycode 74 = j J
    keycode 75 = k K
    keycode 76 = l L
    keycode 77 = m M
    keycode 78 = n N
    keycode 79 = o O
    keycode 80 = p P
    keycode 81 = q Q
    keycode 82 = r R
    keycode 83 = s S
    keycode 84 = t T
    keycode 85 = u U
    keycode 86 = v V
    keycode 87 = w W
    keycode 88 = x X
    keycode 89 = y Y
    keycode 90 = z Z
    

    大键盘数字的keyCode

    keycode 48 = 0 )
    keycode 49 = 1 !
    keycode 50 = 2 @
    keycode 51 = 3 #
    keycode 52 = 4 $
    keycode 53 = 5 %
    keycode 54 = 6 ^
    keycode 55 = 7 &
    keycode 56 = 8 *
    keycode 57 = 9 (
    

    小键盘按键的keyCode

    keycode 96 = KP_0
    keycode 97 = KP_1
    keycode 98 = KP_2
    keycode 99 = KP_3
    keycode 100 = KP_4
    keycode 101 = KP_5
    keycode 102 = KP_6
    keycode 103 = KP_7
    keycode 104 = KP_8
    keycode 105 = KP_9
    keycode 106 = KP_* KP_Multiply
    keycode 107 = KP_+ KP_Add
    keycode 108 = KP_Enter KP_Separator
    keycode 109 = KP_- KP_Subtract
    keycode 110 = KP_. KP_Decimal
    keycode 111 = KP_/ KP_Divide
    

    Fx相关按键keyCodex

    keycode 112 = F1
    keycode 113 = F2
    keycode 114 = F3
    keycode 115 = F4
    keycode 116 = F5
    keycode 117 = F6
    keycode 118 = F7
    keycode 119 = F8
    keycode 120 = F9
    keycode 121 = F10
    keycode 122 = F11
    keycode 123 = F12
    keycode 124 = F13
    keycode 125 = F14
    keycode 126 = F15
    keycode 127 = F16
    keycode 128 = F17
    keycode 129 = F18
    keycode 130 = F19
    keycode 131 = F20
    keycode 132 = F21
    keycode 133 = F22
    keycode 134 = F23
    keycode 135 = F24
    

    其他按键的keyCode

    keycode 8 = BackSpace
    keycode 9 = Tab(Tab按键)
    keycode 12 = Clear
    keycode 13 = Enter(大键盘上的回车按键)
    keycode 16 = Shift_L
    keycode 17 = Control_L
    keycode 18 = Alt_L
    keycode 19 = Pause
    keycode 20 = Caps_Lock
    keycode 27 = Esc Escape(Esc按键)
    keycode 32 = Space(空格按键)
    keycode 33 = Page Up
    keycode 34 = Page Down
    keycode 35 = End
    keycode 36 = Home
    keycode 37 = Left Arrow(上下左右按键)
    keycode 38 = Up Arrow(上下左右按键)
    keycode 39 = Right Arrow(上下左右按键)
    keycode 40 = Down Arrow(上下左右按键)
    keycode 41 = Select
    keycode 42 = Print
    keycode 43 = Execute
    keycode 45 = Insert
    keycode 46 = Delete
    keycode 47 = Help
    keycode 136 = Num_Lock
    keycode 137 = Scroll_Lock
    keycode 187 = =+
    keycode 188 = ,<
    keycode 189 = -_
    keycode 190 = .>
    keycode 191 = /?
    keycode 192 = `~
    keycode 210 = plusminus hyphen macron
    keycode 212 = copyright registered
    keycode 213 = guillemotleft guillemotright
    keycode 214 = masculine ordfeminine
    keycode 215 = ae AE
    keycode 216 = cent yen
    keycode 217 = questiondown exclamdown
    keycode 218 = onequarter onehalf threequarters
    keycode 219 = [{
    keycode 220 = \|
    keycode 221 = ]}
    keycode 222 = '"
    keycode 227 = multiply division
    keycode 228 = acircumflex Acircumflex
    keycode 229 = ecircumflex Ecircumflex
    keycode 230 = icircumflex Icircumflex
    keycode 231 = ocircumflex Ocircumflex
    keycode 232 = ucircumflex Ucircumflex
    keycode 233 = ntilde Ntilde
    keycode 234 = yacute Yacute
    keycode 235 = oslash Ooblique
    keycode 236 = aring Aring
    keycode 237 = ccedilla Ccedilla
    keycode 238 = thorn THORN
    keycode 239 = eth ETH
    keycode 240 = diaeresis cedilla currency
    keycode 241 = agrave Agrave atilde Atilde
    keycode 242 = egrave Egrave
    keycode 243 = igrave Igrave
    keycode 244 = ograve Ograve otilde Otilde
    keycode 245 = ugrave Ugrave
    keycode 246 = adiaeresis Adiaeresis
    keycode 247 = ediaeresis Ediaeresis
    keycode 248 = idiaeresis Idiaeresis
    keycode 249 = odiaeresis Odiaeresis
    keycode 250 = udiaeresis Udiaeresis
    keycode 251 = ssharp question backslash
    keycode 252 = asciicircum degree
    keycode 253 = 3 sterling
    keycode 254 = Mode_switch
    

    所有keyCode

    keycode 0 =
    keycode 1 =
    keycode 2 =
    keycode 3 =
    keycode 4 =
    keycode 5 =
    keycode 6 =
    keycode 7 =
    keycode 8 = BackSpace
    keycode 9 = Tab
    keycode 10 =
    keycode 11 =
    keycode 12 = Clear
    keycode 13 = Enter
    keycode 14 =
    keycode 15 =
    keycode 16 = Shift_L
    keycode 17 = Control_L
    keycode 18 = Alt_L
    keycode 19 = Pause
    keycode 20 = Caps_Lock
    keycode 21 =
    keycode 22 =
    keycode 23 =
    keycode 24 =
    keycode 25 =
    keycode 26 =
    keycode 27 = Esc Escape
    keycode 28 =
    keycode 29 =
    keycode 30 =
    keycode 31 =
    keycode 32 = Space
    keycode 33 = Page Up
    keycode 34 = Page Down
    keycode 35 = End
    keycode 36 = Home
    keycode 37 = Left Arrow
    keycode 38 = Up Arrow
    keycode 39 = Right Arrow
    keycode 40 = Down Arrow
    keycode 41 = Select
    keycode 42 = Print
    keycode 43 = Execute
    keycode 44 =
    keycode 45 = Insert
    keycode 46 = Delete
    keycode 47 = Help
    keycode 48 = 0 )
    keycode 49 = 1 !
    keycode 50 = 2 @
    keycode 51 = 3 #
    keycode 52 = 4 $
    keycode 53 = 5 %
    keycode 54 = 6 ^
    keycode 55 = 7 &
    keycode 56 = 8 *
    keycode 57 = 9 (
    keycode 58 =
    keycode 59 =
    keycode 60 =
    keycode 61 =
    keycode 62 =
    keycode 63 =
    keycode 64 =
    keycode 65 = a A
    keycode 66 = b B
    keycode 67 = c C
    keycode 68 = d D
    keycode 69 = e E
    keycode 70 = f F
    keycode 71 = g G
    keycode 72 = h H
    keycode 73 = i I
    keycode 74 = j J
    keycode 75 = k K
    keycode 76 = l L
    keycode 77 = m M
    keycode 78 = n N
    keycode 79 = o O
    keycode 80 = p P
    keycode 81 = q Q
    keycode 82 = r R
    keycode 83 = s S
    keycode 84 = t T
    keycode 85 = u U
    keycode 86 = v V
    keycode 87 = w W
    keycode 88 = x X
    keycode 89 = y Y
    keycode 90 = z Z
    keycode 91 =
    keycode 92 =
    keycode 93 =
    keycode 94 =
    keycode 95 =
    keycode 96 = KP_0
    keycode 97 = KP_1
    keycode 98 = KP_2
    keycode 99 = KP_3
    keycode 100 = KP_4
    keycode 101 = KP_5
    keycode 102 = KP_6
    keycode 103 = KP_7
    keycode 104 = KP_8
    keycode 105 = KP_9
    keycode 106 = KP_* KP_Multiply
    keycode 107 = KP_+ KP_Add
    keycode 108 = KP_Enter KP_Separator
    keycode 109 = KP_- KP_Subtract
    keycode 110 = KP_. KP_Decimal
    keycode 111 = KP_/ KP_Divide
    keycode 112 = F1
    keycode 113 = F2
    keycode 114 = F3
    keycode 115 = F4
    keycode 116 = F5
    keycode 117 = F6
    keycode 118 = F7
    keycode 119 = F8
    keycode 120 = F9
    keycode 121 = F10
    keycode 122 = F11
    keycode 123 = F12
    keycode 124 = F13
    keycode 125 = F14
    keycode 126 = F15
    keycode 127 = F16
    keycode 128 = F17
    keycode 129 = F18
    keycode 130 = F19
    keycode 131 = F20
    keycode 132 = F21
    keycode 133 = F22
    keycode 134 = F23
    keycode 135 = F24
    keycode 136 = Num_Lock
    keycode 137 = Scroll_Lock
    keycode 138 =
    keycode 139 =
    keycode 140 =
    keycode 141 =
    keycode 142 =
    keycode 143 =
    keycode 144 =
    keycode 145 =
    keycode 146 =
    keycode 147 =
    keycode 148 =
    keycode 149 =
    keycode 150 =
    keycode 151 =
    keycode 152 =
    keycode 153 =
    keycode 154 =
    keycode 155 =
    keycode 156 =
    keycode 157 =
    keycode 158 =
    keycode 159 =
    keycode 160 =
    keycode 161 =
    keycode 162 =
    keycode 163 =
    keycode 164 =
    keycode 165 =
    keycode 166 =
    keycode 167 =
    keycode 168 =
    keycode 169 =
    keycode 170 =
    keycode 171 =
    keycode 172 =
    keycode 173 =
    keycode 174 =
    keycode 175 =
    keycode 176 =
    keycode 177 =
    keycode 178 =
    keycode 179 =
    keycode 180 =
    keycode 181 =
    keycode 182 =
    keycode 183 =
    keycode 184 =
    keycode 185 =
    keycode 186 =
    keycode 187 = =+
    keycode 188 = ,<
    keycode 189 = -_
    keycode 190 = .>
    keycode 191 = /?
    keycode 192 = `~
    keycode 193 =
    keycode 194 =
    keycode 195 =
    keycode 196 =
    keycode 197 =
    keycode 198 =
    keycode 199 =
    keycode 200 =
    keycode 201 =
    keycode 202 =
    keycode 203 =
    keycode 204 =
    keycode 205 =
    keycode 206 =
    keycode 207 =
    keycode 208 =
    keycode 209 =
    keycode 210 = plusminus hyphen macron
    keycode 211 =
    keycode 212 = copyright registered
    keycode 213 = guillemotleft guillemotright
    keycode 214 = masculine ordfeminine
    keycode 215 = ae AE
    keycode 216 = cent yen
    keycode 217 = questiondown exclamdown
    keycode 218 = onequarter onehalf threequarters
    keycode 219 = [{
    keycode 220 = \|
    keycode 221 = ]}
    keycode 222 = '"
    keycode 223 =
    keycode 224 =
    keycode 225 =
    keycode 226 =
    keycode 227 = multiply division
    keycode 228 = acircumflex Acircumflex
    keycode 229 = ecircumflex Ecircumflex
    keycode 230 = icircumflex Icircumflex
    keycode 231 = ocircumflex Ocircumflex
    keycode 232 = ucircumflex Ucircumflex
    keycode 233 = ntilde Ntilde
    keycode 234 = yacute Yacute
    keycode 235 = oslash Ooblique
    keycode 236 = aring Aring
    keycode 237 = ccedilla Ccedilla
    keycode 238 = thorn THORN
    keycode 239 = eth ETH
    keycode 240 = diaeresis cedilla currency
    keycode 241 = agrave Agrave atilde Atilde
    keycode 242 = egrave Egrave
    keycode 243 = igrave Igrave
    keycode 244 = ograve Ograve otilde Otilde
    keycode 245 = ugrave Ugrave
    keycode 246 = adiaeresis Adiaeresis
    keycode 247 = ediaeresis Ediaeresis
    keycode 248 = idiaeresis Idiaeresis
    keycode 249 = odiaeresis Odiaeresis
    keycode 250 = udiaeresis Udiaeresis
    keycode 251 = ssharp question backslash
    keycode 252 = asciicircum degree
    keycode 253 = 3 sterling
    keycode 254 = Mode_switch
    
    展开全文
  • keycode

    2020-07-04 09:24:15
    keycode 8 = BackSpace 回格 keycode 9 = Tab keycode 12 = Clear keycode 13 = Enter 回车 keycode 16 = Shift_L keycode 17 = Control_L keycode 18 = Alt_L keycode 19 = Pause keycode 20 = Caps_Lock keycode ...

    keycode 8 = BackSpace 回格
    keycode 9 = Tab
    keycode 12 = Clear
    keycode 13 = Enter 回车
    keycode 16 = Shift_L
    keycode 17 = Control_L
    keycode 18 = Alt_L
    keycode 19 = Pause
    keycode 20 = Caps_Lock
    keycode 27 = Escape
    keycode 32 = space
    keycode 33 = Prior
    keycode 34 = Next
    keycode 35 = End
    keycode 36 = Home
    keycode 37 = Left
    keycode 38 = Up
    keycode 39 = Right
    keycode 40 = Down
    keycode 41 = Select
    keycode 42 = Print
    keycode 43 = Execute
    keycode 45 = Insert
    keycode 46 = Delete
    keycode 47 = Help
    keycode 48 = 0 equal braceright
    keycode 49 = 1 exclam onesuperior
    keycode 50 = 2 quotedbl twosuperior
    keycode 51 = 3 section threesuperior
    keycode 52 = 4 dollar
    keycode 53 = 5 percent
    keycode 54 = 6 ampersand
    keycode 55 = 7 slash braceleft
    keycode 56 = 8 parenleft bracketleft
    keycode 57 = 9 parenright bracketright
    keycode 65 = a A
    keycode 66 = b B
    keycode 67 = c C
    keycode 68 = d D
    keycode 69 = e E EuroSign
    keycode 70 = f F
    keycode 71 = g G
    keycode 72 = h H
    keycode 73 = i I
    keycode 74 = j J
    keycode 75 = k K
    keycode 76 = l L
    keycode 77 = m M mu
    keycode 78 = n N
    keycode 79 = o O
    keycode 80 = p P
    keycode 81 = q Q at
    keycode 82 = r R
    keycode 83 = s S
    keycode 84 = t T
    keycode 85 = u U
    keycode 86 = v V
    keycode 87 = w W

    展开全文
  • KEYCODE

    2017-12-16 12:13:55
    KEYCODE_CALL 拨号键 5 KEYCODE_ENDCALL 挂机键 6 KEYCODE_HOME 按键Home 3 KEYCODE_MENU 菜单键 82 KEYCODE_BACK 返回键 4

    电话键

    键名 描述 键值
     
    KEYCODE_CALL 拨号键 5
    KEYCODE_ENDCALL 挂机键 6
    KEYCODE_HOME 按键Home 3
    KEYCODE_MENU 菜单 82
    KEYCODE_BACK 返回键 4
    KEYCODE_SEARCH 搜索 84
    KEYCODE_CAMERA 拍照键 27
    KEYCODE_FOCUS 拍照对焦键 80
    KEYCODE_POWER 电源键 26
    KEYCODE_NOTIFICATION 通知键 83
    KEYCODE_MUTE 话筒静音键 91
    KEYCODE_VOLUME_MUTE 扬声器静音键 164
    KEYCODE_VOLUME_UP 音量增加键 24
    KEYCODE_VOLUME_DOWN 音量减小键 25

    控制

    键名 描述 键值
     
    KEYCODE_ENTER 回车键 66
    KEYCODE_ESCAPE ESC键 111
    KEYCODE_DPAD_CENTER 导航键 确定键 23
    KEYCODE_DPAD_UP 导航键 向上 19
    KEYCODE_DPAD_DOWN 导航键 向下 20
    KEYCODE_DPAD_LEFT 导航键 向左 21
    KEYCODE_DPAD_RIGHT 导航键 向右 22
    KEYCODE_MOVE_HOME 光标移动到开始键 122
    KEYCODE_MOVE_END 光标移动到末尾键 123
    KEYCODE_PAGE_UP 向上翻页键 92
    KEYCODE_PAGE_DOWN 向下翻页键 93
    KEYCODE_DEL 退格键 67
    KEYCODE_FORWARD_DEL 删除键 112
    KEYCODE_INSERT 插入键 124
    KEYCODE_TAB Tab键 61
    KEYCODE_NUM_LOCK 小键盘锁 143
    KEYCODE_CAPS_LOCK 大写锁定键 115
    KEYCODE_BREAK Break/Pause键 121
    KEYCODE_SCROLL_LOCK 滚动锁定键 116
    KEYCODE_ZOOM_IN 放大键 168
    KEYCODE_ZOOM_OUT 缩小键 169

    组合键

    键名 描述
     
    KEYCODE_ALT_LEFT Alt+Left
    KEYCODE_ALT_RIGHT Alt+Right
    KEYCODE_CTRL_LEFT Control+Left
    KEYCODE_CTRL_RIGHT Control+Right
    KEYCODE_SHIFT_LEFT Shift+Left
    KEYCODE_SHIFT_RIGHT Shift+Right

    基本

    键名 描述 键值
     
    KEYCODE_0 按键'0' 7
    KEYCODE_1 按键'1' 8
    KEYCODE_2 按键'2' 9
    KEYCODE_3 按键'3' 10
    KEYCODE_4 按键'4' 11
    KEYCODE_5 按键'5' 12
    KEYCODE_6 按键'6' 13
    KEYCODE_7 按键'7' 14
    KEYCODE_8 按键'8' 15
    KEYCODE_9 按键'9' 16
    KEYCODE_A 按键'A' 29
    KEYCODE_B 按键'B' 30
    KEYCODE_C 按键'C' 31
    KEYCODE_D 按键'D' 32
    KEYCODE_E 按键'E' 33
    KEYCODE_F 按键'F' 34
    KEYCODE_G 按键'G' 35
    KEYCODE_H 按键'H' 36
    KEYCODE_I 按键'I' 37
    KEYCODE_J 按键'J' 38
    KEYCODE_K 按键'K' 39
    KEYCODE_L 按键'L' 40
    KEYCODE_M 按键'M' 41
    KEYCODE_N 按键'N' 42
    KEYCODE_O 按键'O' 43
    KEYCODE_P 按键'P' 44
    KEYCODE_Q 按键'Q' 45
    KEYCODE_R 按键'R' 46
    KEYCODE_S 按键'S' 47
    KEYCODE_T 按键'T' 48
    KEYCODE_U 按键'U' 49
    KEYCODE_V 按键'V' 50
    KEYCODE_W 按键'W' 51
    KEYCODE_X 按键'X' 52
    KEYCODE_Y 按键'Y' 53
    KEYCODE_Z 按键'Z' 54

    符号

    键名 描述
     
    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 空格键

    小键盘

    键名 描述
     
    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 小键盘按键回车

    功能

    键名 描述
     
    KEYCODE_F1 按键F1
    KEYCODE_F2 按键F2
    KEYCODE_F3 按键F3
    KEYCODE_F4 按键F4
    KEYCODE_F5 按键F5
    KEYCODE_F6 按键F6
    KEYCODE_F7 按键F7
    KEYCODE_F8 按键F8
    KEYCODE_F9 按键F9
    KEYCODE_F10 按键F10
    KEYCODE_F11 按键F11
    KEYCODE_F12 按键F12

    媒体

    键名 描述
     
    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 多媒体键 录音

    手柄按键

    键名 描述
     
    KEYCODE_BUTTON_1 通用游戏手柄按钮 #1
    KEYCODE_BUTTON_2 通用游戏手柄按钮 #2
    KEYCODE_BUTTON_3 通用游戏手柄按钮 #3
    KEYCODE_BUTTON_4 通用游戏手柄按钮 #4
    KEYCODE_BUTTON_5 通用游戏手柄按钮 #5
    KEYCODE_BUTTON_6 通用游戏手柄按钮 #6
    KEYCODE_BUTTON_7 通用游戏手柄按钮 #7
    KEYCODE_BUTTON_8 通用游戏手柄按钮 #8
    KEYCODE_BUTTON_9 通用游戏手柄按钮 #9
    KEYCODE_BUTTON_10 通用游戏手柄按钮 #10
    KEYCODE_BUTTON_11 通用游戏手柄按钮 #11
    KEYCODE_BUTTON_12 通用游戏手柄按钮 #12
    KEYCODE_BUTTON_13 通用游戏手柄按钮 #13
    KEYCODE_BUTTON_14 通用游戏手柄按钮 #14
    KEYCODE_BUTTON_15 通用游戏手柄按钮 #15
    KEYCODE_BUTTON_16 通用游戏手柄按钮 #16
    KEYCODE_BUTTON_A 游戏手柄按钮 A
    KEYCODE_BUTTON_B 游戏手柄按钮 B
    KEYCODE_BUTTON_C 游戏手柄按钮 C
    KEYCODE_BUTTON_X 游戏手柄按钮 X
    KEYCODE_BUTTON_Y 游戏手柄按钮 Y
    KEYCODE_BUTTON_Z 游戏手柄按钮 Z
    KEYCODE_BUTTON_L1 游戏手柄按钮 L1
    KEYCODE_BUTTON_L2 游戏手柄按钮 L2
    KEYCODE_BUTTON_R1 游戏手柄按钮 R1
    KEYCODE_BUTTON_R2 游戏手柄按钮 R2
    KEYCODE_BUTTON_MODE 游戏手柄按钮 Mode
    KEYCODE_BUTTON_SELECT 游戏手柄按钮 Select
    KEYCODE_BUTTON_START 游戏手柄按钮 Start
    KEYCODE_BUTTON_THUMBL Left Thumb Button
    KEYCODE_BUTTON_THUMBR Right Thumb Button

    待查

     

    键名 描述

     
    KEYCODE_NUM 按键Number modifier
    KEYCODE_INFO 按键Info
    KEYCODE_APP_SWITCH 按键App switch
    KEYCODE_BOOKMARK 按键Bookmark
    KEYCODE_AVR_INPUT 按键A/V Receiver input
    KEYCODE_AVR_POWER 按键A/V Receiver power
    KEYCODE_CAPTIONS 按键Toggle captions
    KEYCODE_CHANNEL_DOWN 按键Channel down
    KEYCODE_CHANNEL_UP 按键Channel up
    KEYCODE_CLEAR 按键Clear
    KEYCODE_DVR 按键DVR
    KEYCODE_ENVELOPE 按键Envelope special function
    KEYCODE_EXPLORER 按键Explorer special function
    KEYCODE_FORWARD 按键Forward
    KEYCODE_FORWARD_DEL 按键Forward Delete
    KEYCODE_FUNCTION 按键Function modifier
    KEYCODE_GUIDE 按键Guide
    KEYCODE_HEADSETHOOK 按键Headset Hook
    KEYCODE_META_LEFT 按键Left Meta modifier
    KEYCODE_META_RIGHT 按键Right Meta modifier
    KEYCODE_PICTSYMBOLS 按键Picture Symbols modifier
    KEYCODE_PROG_BLUE 按键Blue “programmable”
    KEYCODE_PROG_GREEN 按键Green “programmable”
    KEYCODE_PROG_RED 按键Red “programmable”
    KEYCODE_PROG_YELLOW 按键Yellow “programmable”
    KEYCODE_SETTINGS 按键Settings
    KEYCODE_SOFT_LEFT 按键Soft Left
    KEYCODE_SOFT_RIGHT 按键Soft Right
    KEYCODE_STB_INPUT 按键Set-top-box input
    KEYCODE_STB_POWER 按键Set-top-box power
    KEYCODE_SWITCH_CHARSET 按键Switch Charset modifier
    KEYCODE_SYM 按键Symbol modifier
    KEYCODE_SYSRQ 按键System Request / Print Screen
    KEYCODE_TV 按键TV
    KEYCODE_TV_INPUT 按键TV input
    KEYCODE_TV_POWER 按键TV power
    KEYCODE_WINDOW 按键Window
    KEYCODE_UNKNOWN 未知按键
    展开全文
  • KeyCode

    2019-05-18 15:25:48
    const KeyCode = { /** * MAC_ENTER */ MAC_ENTER: 3, /** * BACKSPACE */ BACKSPACE: 8, /** * TAB */ TAB: 9, /** * NUMLOCK on FF/Safari Mac */ NUM_CENTER: 12, // ...
    
    const KeyCode = {
      /**
       * MAC_ENTER
       */
      MAC_ENTER: 3,
      /**
       * BACKSPACE
       */
      BACKSPACE: 8,
      /**
       * TAB
       */
      TAB: 9,
      /**
       * NUMLOCK on FF/Safari Mac
       */
      NUM_CENTER: 12, // NUMLOCK on FF/Safari Mac
      /**
       * ENTER
       */
      ENTER: 13,
      /**
       * SHIFT
       */
      SHIFT: 16,
      /**
       * CTRL
       */
      CTRL: 17,
      /**
       * ALT
       */
      ALT: 18,
      /**
       * PAUSE
       */
      PAUSE: 19,
      /**
       * CAPS_LOCK
       */
      CAPS_LOCK: 20,
      /**
       * ESC
       */
      ESC: 27,
      /**
       * SPACE
       */
      SPACE: 32,
      /**
       * PAGE_UP
       */
      PAGE_UP: 33, // also NUM_NORTH_EAST
      /**
       * PAGE_DOWN
       */
      PAGE_DOWN: 34, // also NUM_SOUTH_EAST
      /**
       * END
       */
      END: 35, // also NUM_SOUTH_WEST
      /**
       * HOME
       */
      HOME: 36, // also NUM_NORTH_WEST
      /**
       * LEFT
       */
      LEFT: 37, // also NUM_WEST
      /**
       * UP
       */
      UP: 38, // also NUM_NORTH
      /**
       * RIGHT
       */
      RIGHT: 39, // also NUM_EAST
      /**
       * DOWN
       */
      DOWN: 40, // also NUM_SOUTH
      /**
       * PRINT_SCREEN
       */
      PRINT_SCREEN: 44,
      /**
       * INSERT
       */
      INSERT: 45, // also NUM_INSERT
      /**
       * DELETE
       */
      DELETE: 46, // also NUM_DELETE
      /**
       * ZERO
       */
      ZERO: 48,
      /**
       * ONE
       */
      ONE: 49,
      /**
       * TWO
       */
      TWO: 50,
      /**
       * THREE
       */
      THREE: 51,
      /**
       * FOUR
       */
      FOUR: 52,
      /**
       * FIVE
       */
      FIVE: 53,
      /**
       * SIX
       */
      SIX: 54,
      /**
       * SEVEN
       */
      SEVEN: 55,
      /**
       * EIGHT
       */
      EIGHT: 56,
      /**
       * NINE
       */
      NINE: 57,
      /**
       * QUESTION_MARK
       */
      QUESTION_MARK: 63, // needs localization
      /**
       * A
       */
      A: 65,
      /**
       * B
       */
      B: 66,
      /**
       * C
       */
      C: 67,
      /**
       * D
       */
      D: 68,
      /**
       * E
       */
      E: 69,
      /**
       * F
       */
      F: 70,
      /**
       * G
       */
      G: 71,
      /**
       * H
       */
      H: 72,
      /**
       * I
       */
      I: 73,
      /**
       * J
       */
      J: 74,
      /**
       * K
       */
      K: 75,
      /**
       * L
       */
      L: 76,
      /**
       * M
       */
      M: 77,
      /**
       * N
       */
      N: 78,
      /**
       * O
       */
      O: 79,
      /**
       * P
       */
      P: 80,
      /**
       * Q
       */
      Q: 81,
      /**
       * R
       */
      R: 82,
      /**
       * S
       */
      S: 83,
      /**
       * T
       */
      T: 84,
      /**
       * U
       */
      U: 85,
      /**
       * V
       */
      V: 86,
      /**
       * W
       */
      W: 87,
      /**
       * X
       */
      X: 88,
      /**
       * Y
       */
      Y: 89,
      /**
       * Z
       */
      Z: 90,
      /**
       * META
       */
      META: 91, // WIN_KEY_LEFT
      /**
       * WIN_KEY_RIGHT
       */
      WIN_KEY_RIGHT: 92,
      /**
       * CONTEXT_MENU
       */
      CONTEXT_MENU: 93,
      /**
       * NUM_ZERO
       */
      NUM_ZERO: 96,
      /**
       * NUM_ONE
       */
      NUM_ONE: 97,
      /**
       * NUM_TWO
       */
      NUM_TWO: 98,
      /**
       * NUM_THREE
       */
      NUM_THREE: 99,
      /**
       * NUM_FOUR
       */
      NUM_FOUR: 100,
      /**
       * NUM_FIVE
       */
      NUM_FIVE: 101,
      /**
       * NUM_SIX
       */
      NUM_SIX: 102,
      /**
       * NUM_SEVEN
       */
      NUM_SEVEN: 103,
      /**
       * NUM_EIGHT
       */
      NUM_EIGHT: 104,
      /**
       * NUM_NINE
       */
      NUM_NINE: 105,
      /**
       * NUM_MULTIPLY
       */
      NUM_MULTIPLY: 106,
      /**
       * NUM_PLUS
       */
      NUM_PLUS: 107,
      /**
       * NUM_MINUS
       */
      NUM_MINUS: 109,
      /**
       * NUM_PERIOD
       */
      NUM_PERIOD: 110,
      /**
       * NUM_DIVISION
       */
      NUM_DIVISION: 111,
      /**
       * F1
       */
      F1: 112,
      /**
       * F2
       */
      F2: 113,
      /**
       * F3
       */
      F3: 114,
      /**
       * F4
       */
      F4: 115,
      /**
       * F5
       */
      F5: 116,
      /**
       * F6
       */
      F6: 117,
      /**
       * F7
       */
      F7: 118,
      /**
       * F8
       */
      F8: 119,
      /**
       * F9
       */
      F9: 120,
      /**
       * F10
       */
      F10: 121,
      /**
       * F11
       */
      F11: 122,
      /**
       * F12
       */
      F12: 123,
      /**
       * NUMLOCK
       */
      NUMLOCK: 144,
      /**
       * SEMICOLON
       */
      SEMICOLON: 186, // needs localization
      /**
       * DASH
       */
      DASH: 189, // needs localization
      /**
       * EQUALS
       */
      EQUALS: 187, // needs localization
      /**
       * COMMA
       */
      COMMA: 188, // needs localization
      /**
       * PERIOD
       */
      PERIOD: 190, // needs localization
      /**
       * SLASH
       */
      SLASH: 191, // needs localization
      /**
       * APOSTROPHE
       */
      APOSTROPHE: 192, // needs localization
      /**
       * SINGLE_QUOTE
       */
      SINGLE_QUOTE: 222, // needs localization
      /**
       * OPEN_SQUARE_BRACKET
       */
      OPEN_SQUARE_BRACKET: 219, // needs localization
      /**
       * BACKSLASH
       */
      BACKSLASH: 220, // needs localization
      /**
       * CLOSE_SQUARE_BRACKET
       */
      CLOSE_SQUARE_BRACKET: 221, // needs localization
      /**
       * WIN_KEY
       */
      WIN_KEY: 224,
      /**
       * MAC_FF_META
       */
      MAC_FF_META: 224, // Firefox (Gecko) fires this for the meta key instead of 91
      /**
       * WIN_IME
       */
      WIN_IME: 229,
    };
    
    /*
     whether text and modified key is entered at the same time.
     */
    KeyCode.isTextModifyingKeyEvent = function isTextModifyingKeyEvent(e) {
      const keyCode = e.keyCode;
      if (e.altKey && !e.ctrlKey || e.metaKey ||
          // Function keys don't generate text
        keyCode >= KeyCode.F1 && keyCode <= KeyCode.F12) {
        return false;
      }
    
      // The following keys are quite harmless, even in combination with
      // CTRL, ALT or SHIFT.
      switch (keyCode) {
        case KeyCode.ALT:
        case KeyCode.CAPS_LOCK:
        case KeyCode.CONTEXT_MENU:
        case KeyCode.CTRL:
        case KeyCode.DOWN:
        case KeyCode.END:
        case KeyCode.ESC:
        case KeyCode.HOME:
        case KeyCode.INSERT:
        case KeyCode.LEFT:
        case KeyCode.MAC_FF_META:
        case KeyCode.META:
        case KeyCode.NUMLOCK:
        case KeyCode.NUM_CENTER:
        case KeyCode.PAGE_DOWN:
        case KeyCode.PAGE_UP:
        case KeyCode.PAUSE:
        case KeyCode.PRINT_SCREEN:
        case KeyCode.RIGHT:
        case KeyCode.SHIFT:
        case KeyCode.UP:
        case KeyCode.WIN_KEY:
        case KeyCode.WIN_KEY_RIGHT:
          return false;
        default:
          return true;
      }
    };
    
    /*
     whether character is entered.
     */
    KeyCode.isCharacterKey = function isCharacterKey(keyCode) {
      if (keyCode >= KeyCode.ZERO &&
        keyCode <= KeyCode.NINE) {
        return true;
      }
    
      if (keyCode >= KeyCode.NUM_ZERO &&
        keyCode <= KeyCode.NUM_MULTIPLY) {
        return true;
      }
    
      if (keyCode >= KeyCode.A &&
        keyCode <= KeyCode.Z) {
        return true;
      }
    
      // Safari sends zero key code for non-latin characters.
      if (window.navigation.userAgent.indexOf('WebKit') !== -1 && keyCode === 0) {
        return true;
      }
    
      switch (keyCode) {
        case KeyCode.SPACE:
        case KeyCode.QUESTION_MARK:
        case KeyCode.NUM_PLUS:
        case KeyCode.NUM_MINUS:
        case KeyCode.NUM_PERIOD:
        case KeyCode.NUM_DIVISION:
        case KeyCode.SEMICOLON:
        case KeyCode.DASH:
        case KeyCode.EQUALS:
        case KeyCode.COMMA:
        case KeyCode.PERIOD:
        case KeyCode.SLASH:
        case KeyCode.APOSTROPHE:
        case KeyCode.SINGLE_QUOTE:
        case KeyCode.OPEN_SQUARE_BRACKET:
        case KeyCode.BACKSLASH:
        case KeyCode.CLOSE_SQUARE_BRACKET:
          return true;
        default:
          return false;
      }
    };
    
    export default KeyCode;
    

    https://github.com/react-component/util/edit/master/src/KeyCode.js

    展开全文
  • Android KEYCODE

    2020-11-15 19:01:01
    下面是KEYCODE列表 电话键 键名 描述 键值 KEYCODE_CALL 拨号键5 KEYCODE_ENDCALL 挂机键6 KEYCODE_HOME 按键Home3 KEYCODE_MENU 菜单键82 KEYCODE_BACK 返回键4 KEYCODE_SEARCH 搜索键84 KEYCODE_CAMERA 拍照键27 ...
  • 不同浏览器keyCode

    2016-09-18 21:01:36
    keyCode
  • javascript keycode

    2019-07-12 15:33:27
    keycode 8 = BackSpace BackSpace keycode 9 = Tab Tab keycode 12 = Clear keycode 13 = Enter keycode 16 = Shift_L keycode 17 = Control_L keycode 18 = Alt_L keycode 19 = Pause keycode ...
  • Unity Keycode

    2017-10-06 17:00:26
    keycode 8 = BackSpace keycode 9 = Tab Tab keycode 12 = Clear keycode 13 = Enter keycode 16 = Shift_L keycode 17 = Control_L keycode 18 = Alt_L keycode 19 = Pause keycode 20 = Caps_Lock keycode 27 = ...
  • KEYCODE列表

    千次阅读 2019-10-03 01:52:27
    KEYCODE_CALL 拨号键 5 KEYCODE_ENDCALL 挂机键 6 KEYCODE_HOME 按键Home 3 KEYCODE_MENU 菜单键 82 KEYCODE_BACK 返回键 4 KEYCODE_SEARCH 搜索键 84 KEYCOD...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 15,776
精华内容 6,310
关键字:

keycode