键盘按钮对应代码
Flash常用按钮代码大全
Flash按钮代码大全在2,0中制作1、转下一帧并继续播放on (release){play();}2、转第三帧并播放on (release){gotoAndPlay(03);//数字是代表的帧数stopAllSounds();}3、全屏播放fscommand("fullscreen", "true");4、退出on (release){if (substring(_root._url, 8, 1) == "/"){fscommand("quit");}else{getURL("javascript:window.close()");} // end if}5、返回第一帧on (release){gotoAndPlay(01);stopAllSounds();}FLASH脚本代码大全- Go to 跳转到指定的帧- Play 播放- Stop 停止- Toggle High Quality 在高画质和低画质间切换- Stop All Sounds 停止所有声音的播放- Get URL 跳转至某个超联结- FSCommand 发送FSCommand命令- Load Movie 装载影片- Unload Movie 卸载影片- Tell Target 告知目标- If Frame Is Loaded ..判断帧是否被完全载入- On Mouse Event 鼠标事件。
其他Actions。
包括:- break 跳出循环- call 调用指定帧(一般喊有某个特定函数)- comment 注释- continue 继续循环- delete 删除一个对象(Object)中的变量- do while do while循环- duplicateMovieClip 复制MC- else 否则(与if联用)- else if 否则如果(与if联用)- evaluate 调用自定义函数(Function)- for for循环- for .. in 依次取得对象(Object)中的各个属性或者某个数组中的所有元素- FSCommand 发送FSCommand命令- function 声明自定义函数- getURL 跳转至某个超联结- goto 跳转到指定的帧- if 如果- ifFrameLoaded ..帧是否完全被载入- include 读入外部的ActionScript程序文件(.as)- loadMovie 装载MC- loadVariables 转载外部文件中的数据,这些外部文件可以是文本文件,或者是由ASP/CGI等脚本返回的文本值- on 鼠标事件的触发条件- onClipEvent MC的事件触发程序- play 播放- print 输出到打印机- removeMovieClip 删除MC- return 在函数(function)中返回一个值- set variable 设定变量值- setProperty 设定属性- startDrag 开始拖动- stop 停止- stopAllSounds 停止所有声音的播放- stopDrag 停止拖动- s 交换两个MC的深度- tellTarget 指定Action命令生效的目标- toggleHighQuality 在高画质和低画质间切换- trace 跟踪调试- unloadMovie 卸载MC- var 声明局部变量- while 当..成立时..- with 对..对象(Object)做..。
键盘按键对应的编码
键盘按键对应的编码
键盘按键对应的编码通常是通过使用ASCII码(American Standard Code for Information Interchange)或Unicode编码来表示的。
这些编码用于将键盘上的每个按键映射到特定的字符或控制码。
下面是一些常见的键盘按键和它们对应的ASCII码或Unicode编码:
1. 字母键:A-Z对应的ASCII码为65-90(大写字母)和97-122(小写字母)。
2. 数字键:0-9对应的ASCII码为48-57。
3. 功能键:F1-F12对应的ASCII码为112-123。
4. 控制键:例如Enter键对应的ASCII码为13,Tab键对应的ASCII码为9,空格键对应的ASCII码为32,退格键对应的ASCII码为8。
5. 特殊符号键:例如感叹号键对应的ASCII码为33,问号键对应的ASCII 码为63,加号键对应的ASCII码为43,等等。
Unicode编码是一种更为全面的字符编码系统,它包含了全球范围内的各种字符和符号。
Unicode编码使用16位或32位来表示每个字符,包括了各种语言的字母、标点符号、数学符号、货币符号等等。
需要注意的是,不同的操作系统和键盘布局可能会有一些细微的差异,因此具体的键盘按键编码可能会有所不同。
如果需要获取特定键盘按键的编码,最好
参考相关的文档或编程语言的API文档。
键盘按键的各种编码对照表(全)
键盘按键的各种编码对照表(全)键盘按键的各种编码对照表本附录中的各表列举了键盘按键扫描码和其ASCII码之间的对照关系,表中数据都是⼗六进制形式。
在⽤中断16H的0号功能时,当按下任意⼀个键或组合键时,寄存器AH和AL分别保存着该按键的扫描码和ASCII码。
表1、ASCII码的编码⽅案⾼位000001010011100101110111低位0000NUL DEL SP0@P`p0001SOH DC1!1A Q a q0010STX DC2“2B R b r0011ETX DC3#3C S c s0100EOT DC4$4D T d t0101ENQ NAK%5E U e u0110ACK SYN&6F V f v0111BEL ETB‘7G W g w1000BS CAN(8H X h x1001HT EM)9I Y i y1010LF SUB*:J Z j z1011VT ESC+;K[k{1100FF FS1101CR GS-=M]m}1110SO RS.>N^n~1111SI US/?O_o Del表2、字母和空格按键的编码表单键SHIFT CTRL ALT 按键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码a and A1E611E411E011E00b and B3062304230023000c and C2E632E432E032E00d and D2064204420042000e and E1265124512051200f and F2166214621062100g and G2267224722072200h and H2368234823082300i and I1769174917091700j an1 J246A244A240A2400 k and K256B254B250B2500 l and L266C264C260C2600m and M326D324D320D3200 n and N316E314E310E3100 o and O186F184F180F1800 p and P1970195019101900 q and Q1071105110111000 r and R1372135213121300 s and S1F731F531F131F00 t and T1474145414141400 u andU1675165516151600 v and V2F762F562F162F00w and W1177115711171100 x and X2D782D582D182D00 y and Y1579155915191500 z and Z2C7A2C5A2C1A2C00 SpaceBar3920392039203920表3、功能键的编码表单键SHIFT CTRL ALT按键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码F13B0054005E006800 F23C0055005F006900F33D00560060006A00 F43E00570061006B00 F53F00580062006C00 F64000590063006D00 F741005A0064006E00F842005B0065006F00 F943005C0066007000 F1044005D0067007100 F118500870089008B00 F12860088008A008C00表4、数字键盘的编码表单键SHIFT CTRL ALT 按键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码Ins & 0 52 00 52 30 92 00End & 14F004F3175000001↓& 25000503291000002 PgDn & 35100513376000003←& 44B004B3473000004 54C004C358F000005→&64D004D3674000006 Home & 74700473777000007↑& 8480048388D000008 PgUp & 94900493984000009+4E2B4E2B90004E00-4A2D4A2D8E004A00 Del & '.'53 00 53 2E 93 00*372A372A96003700表5、第⼀排数字键盘的编码表单键SHIFT CTRL ALT 按键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码` and ~2960297E29001 and !023*********2 and @03320340030079003 and #043304237A004 and $053405247B005 and %063506257C006 and ^0736075E071E7D007 and &083708267E008 and *0938092A7F009 and (0A390A3880000 and )0B300B298100- and _0C2D0C5F0C1F8200= and +0D3D0D2B8300表6、操作按键的编码表单键SHIFT CTRL ALT 按键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码Esc011B011B011B0100 Backspace0E080E080E7F0E00 Tab0F090F009400A500 Enter1C0D1C0D1C0A1C00表7、标号按键的编码表单键SHIFT CTRL ALT按键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码[ and {1A5B1A7B1A1B1A00] and }1B5D1B7D1B1D1B00; and :273B273A27' and "2827282228\ and |2b5C2b7C2B1C2b, and <332C333C33. and >342E343E34/ and ?352F353F35表8、附加按键的编码表单键SHIFT CTRL ALT 按键扫描码ASCII码扫描码ASCII码扫描码ASCII码扫描码ASCII码Slash(/)E02F E02F9500A400 Enter E00D E00D E00A A600 Home47E047E077E09700 End4F E04F E075E09F00 PageUp49E049E084E09900 PageDown51E051E076E0A100 DnArrow50E050E091E0A000 LeftArrow4B E04B E073E09B00 RightArrow4D E04D E074E09D00 UpArrow48E048E08D E09800 Ins52E052E092E0A200 Del53E053E093E0A300表9、其它按键的扫描码当这些键被按下时,BIOS并没有把它们的扫描码输⼊键盘缓冲区。
键盘键码对照
键盘键码对照 1按键名(key)按键码(keyCode)2 Escape【退出键】273 F1 1124 F2 1135 F3 1146 F4 1157 F5 1168 F6 1179 F7 11810 F8 11911 F9 12012 F10 12113 F11 12214 F12 12315 ScrollLock【滚动锁定键】14516 Print【打印键,亦可截取整个屏幕,在画图、doc、ppt等粘贴】4217 Pause【暂停键】1918 `【反引号】19219 ~【波浪号】19220 ! 4921 @【艾特符,⼩⽼⿏,圈a,蜗⽜】5022 #【井号】5123 $【美元符,中⽂状态下是⼈民币符】5224 % 5325 ^【折⾳符】5426 &【and符,和,且】5527 *【星号】5628 ( 5729 ) 4830 -【减号,横杆】17331 + 613214933250343513545236553376543875539856409574104842 _【下划线】17343 = 6144 Backspace【←回退键】845 Tab【制表键】946 CapsLock【⇪字母⼤写锁】2047 Shift【⇧上档转换键或上档键】1648 q 8149 w 8750 e 6951 r 8252 t 8453 y 8954 u 8555 i 7356 o 7957 p 8058 [ 21959 ] 22160 Q 8161 W 8762 E 6963 R 8264 T 8465 Y 8966 U 8567 I 7368 O 7969 P 8070 { 21971 } 22172 a 6573 s 8374 d 6875 f 7076 g 7177 h 7278 j 7479 k 7580 l 7681 ;【分号】5982'【单引号】 22283 \【反斜杠】22084 A 6585 S 8386 D 6887 F 7088 G 7189 H 7290 J 7491 K 7592 L 7693 :【冒号】5994"【双引号】 22295 |【竖杠】22096 z 9097 x 8898 c 6799 v 86100 b 66101 n 78102 m 77103 ,【逗号】188104 .【句号】190105 /【斜杠】191106 Z 90107 X 88108 C 67109 V 86110 B 66111 N 78112 M 77113 <【⼩于号】188114 >【⼤于号】190115 ? 191116 Control【控制键】17117 OS【window键】91118 Alt【换挡键】18119【空格键】32120 ContextMenu【上下⽂菜单键,等价于⿏标右键】93121 Enter【↩回车键】13122 Insert【插⼊键】45123 Delete【删除键】46124 Home【起始键】36125 End【结束建】35126 PageUp【上页键】33127 PageDown【下页键】34128 ArrowUp【↑上移键】38129 ArrowRight【→右移键】39130 ArrowDown【↓下移键】40131 ArrowLeft【←左移键】37132以下是⼩键盘部分133 NumLock【数字锁定键】144134 / 111135 * 106136 - 109137 + 107138 Enter 13139096140 .【点】110141197142298143399144410014551011466102147710314881041499105内核源码,kernel/include/uapi/linux/input.h中如下定义:Linux下系统和windows下系统键值。
键盘键码表
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_7keycode 104 = KP_8keycode 105 = KP_9keycode 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 = F1keycode 113 = F2keycode 114 = F3keycode 115 = F4keycode 116 = F5keycode 117 = F6keycode 118 = F7keycode 119 = F8keycode 120 = F9keycode 121 = F10keycode 122 = F11keycode 123 = F12keycode 124 = F13keycode 125 = F14keycode 126 = F15keycode 127 = F16keycode 128 = F17keycode 129 = F18keycode 130 = F19keycode 131 = F20keycode 132 = F21keycode 133 = F22keycode 134 = F23keycode 135 = F24keycode 136 = Num_Lockkeycode 137 = Scroll_Lockkeycode 138 =keycode 139 =keycode 140 =keycode 141 =keycode 142 =keycode 143 =keycode 144 =keycode 145 =keycode 146 =keycode 147 =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 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 registeredkeycode 213 = guillemotleft guillemotright keycode 214 = masculine ordfemininekeycode 215 = ae AEkeycode 216 = cent yenkeycode 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 divisionkeycode 228 = acircumflex Acircumflex keycode 229 = ecircumflex Ecircumflex keycode 230 = icircumflex Icircumflexkeycode 231 = ocircumflex Ocircumflex keycode 232 = ucircumflex Ucircumflex keycode 233 = ntilde Ntildekeycode 234 = yacute Yacutekeycode 235 = oslash Oobliquekeycode 236 = aring Aringkeycode 237 = ccedilla Ccedillakeycode 238 = thorn THORNkeycode 239 = eth ETHkeycode 240 = diaeresis cedilla currencykeycode 241 = agrave Agrave atilde Atildekeycode 242 = egrave Egravekeycode 243 = igrave Igravekeycode 244 = ograve Ograve otilde Otildekeycode 245 = ugrave Ugravekeycode 246 = adiaeresis Adiaeresiskeycode 247 = ediaeresis Ediaeresiskeycode 248 = idiaeresis Idiaeresiskeycode 249 = odiaeresis Odiaeresiskeycode 250 = udiaeresis Udiaeresiskeycode 251 = ssharp question backslashkeycode 252 = asciicircum degreekeycode 253 = 3 sterlingkeycode 254 = Mode_switch使用示例:if ((window.event.ctrlKey)&&(window.event.keyCode==49))alert("您按下了CTRL+1键");从以上例子可以看出,shift、Control、Alt 在JS中也可用“window.event.shiftKey”、“window.event.ctrlKey”、“window.event.altKey” 代替。
键盘对应代码
十六进制值
十进制值
对应按键
VK_LBUTTON 01 1 鼠标的左键
VK_RBUTTON 02 2
鼠标的右键
VK-CANCEL
03 3 Ctrl Break(通常不需要处理)
VK_MBUTTON
04 4 鼠标的中键(三按键鼠标)
VK_BACK
VK_F10 79 121 F10键
VK_F11 7A 122 F11键
VK_F12 7B 123 F12键
VK_NUMLOCK
90 144 NumLock键
VK_SCROLL
91 145 ScrollLock键
上面没有提到的:(都在大键盘)
VK_N 4E 78 N键
VK_O 4F 79 O键
VK_P 50 80 P键
VK_Q 51 81 Q键
VK_R 52 82 R键
VK_S 53 83 S键
VK_T 54 84 T键
VK_U 55 85 U键
VK_V 56 86 V键
VK_W 57 87 W键
PageUp键
VK_NEXT
22 34
PageDomw键
VK_END
23 35
End键
VK_HOME
24 36
Home键
VK_LEFT
25 37
LEFTARROW键(←)
VK_UP
26 38
UPARROW键(↑)
VK_RIGHT
VK_ADD
6B 107 数字键盘上的 键
VK_SEPARATOR
6C 108 Separator键
键盘代码大全(完整)
F8键: VK_F8 (119)
F9键: VK_F9 (120)
F10键: VK_F10 (121)
F11键: VK_F11 (122)
F12键: VK_F12 (123)
Num Lock键: VK_NUMLOCK (144)
小键盘0: VK_NUMPAD0 (96)
4
04
EOT (end of transmission)
传输结束
00000101
5
05
ENQ (enquiry)
请求
00000110
6
06
ACK (acknowledge)
收到通知
00000111
7
07
BEL (bell)
响铃
00001000
8
08
BS (backspace)
退格
00001001
9
09
75
4B
K
01001100
76
4C
L
01001101
77
4D
M
01001110
78
4E
N
01001111
79
4F
O
01010000
80
50
P
01010001
81
51
Q
01010010
82
52
R
01010011
83
53
S
01010100
84
54
T
01010101
85
55
U
01010110
86
56
V
01010111
MACH3系统热键OEM代码表
MACH3的系统热键的基本设置及OEM代码表。
一、将系统热键与MACH3面板OEM码相结合的设置方式下面是电脑的设置。
1、先设置常用移动键点MACH3设置菜单下热键系统热键点画面上按钮出现如下画面点画面上按钮(如X++)出现如下画面分别按屏幕上动XYZA的“++”“--”键,对应按下电脑键盘上的您想设置的键,就设置好了相关各轴的移动按扭.依次把需要的键都设置好,点确定.2、剩下的功能键设置方法点MACH3设置点端口针脚出现如下画面点输入信号,出现如下画面,把OEMTrig#1到#15按图点成勾点HotKey列的#1行出现按一下你要设置的键,键盘码就自动填入,依次操作把#2-#15设置好,记住#1-#15各是哪个键设置急停键选EStop行打勾点HotKey列按一下键盘INS键,就把INS键设置为急停全部输入完成点应用确定退出在进入下面画面把OEM码写入1-15点确定以上就设置完成了,车床也类似使用时进入手动编程(DMI),先点脱机键,按ERTER然后把可能使用的指令G01X0F100G01Y0F100G02G03螺纹指令等输入,执行,,在点脱机(解除脱机状态)手动使用时,随时按小键盘ENTER就进入指令输入状态,用光标键选择指令,在用数字键修改指令后,用ENTER执行.实现精确自动走刀.修改坐标或清零,按一下*键,用光标选择,数字键修改ENTER确认退出.这样键盘就可以完成手动操作全部动作,纵横定位\自动走刀\车罗纹,在也不需要摇机械手轮.二、下面举个例子:例如:设置键盘“J”成“循环开始”键1.先查表2.设置OEM码3.定义按键盘键完成这个“74”就是按一下键盘要定义的键,不是填入去的。
前面的“1000”是查表后填写入去的三、附录:下面是国外的关于MACH3的OEM按钮码的资料,功能码有几百个,要什么功能自己定义就可以了。
但要注意:在定义时,要记下哪个键是干什么用的。
这个列表给出了在DooEmbutton调用中要使用的代码。
ASCII码表和键盘键码表(完整珍藏版)
表一: ASCII码表 (完整版 )ASCII 值字符ASCII 值字符ASCII 值字符ASCII 值字符0NUT32(space)64@96、1SOH33!65A97a 2STX34”66B98b 3ETX35#67C99c 4EOT36$68D100d 5ENQ37%69E101e 6ACK38&70F102f7BEL39,71G103g 8BS40(72H104h 9HT41)73I105i 10LF42*74J106j11VT43+75K107k 12FF44,76L108l 13CR45-77M109m 14SO46.78N110n 15SI47/79O111o 16DLE48080P112p 17DCI49181Q113q 18DC250282R114r 19DC351383X115s 20DC452484T116t 21NAK53585U117u 22SYN54686V118v 23TB55787W119w 24CAN56888X120x 25EM57989Y121y 26SUB58:90Z122z 27ESC59;91[123{ 28FS60<92/124| 29GS61=93]125} 30RS62>94^126~ 31US63?95—127DEL注:特殊控制字符所代表含义NUL 空VT垂直制表SYN空转同步HT横向列表SOH 标题开始FF 走纸控制ETB信息组传送结束LF换行STX 正文开始CR 回车CAN 作废GS组分隔符ETX正文结束SO 移位输出EM纸尽NAK否定EOY传输结束SI移位输入SUB换置US单元分隔符ENQ询问字符DLE空格ESC换码DEL删除ACK承认BS 退一格FS文字分隔符RS记录分隔符DC1 设备控制 1DC2 设备控制 2DC3 设备控制 3DC4 设备控制 4BEL 报警表二: 104键盘码表 (完整版 )控制键常数值健描述常数值健描述vbKeyLButton1鼠标左键vbKeyPageDown34PageDown键vbKeyRButton2鼠标右键vbKeyEnd35End键vbKeyCancel3Cancel键vbKeyHome36Home键vbKeyMButton4鼠标中键vbKeyLeft37左方向键vbKeyBack8Backspace健vbKeyUp38上方向键vbKeyTab9Tab键vbKeyRight39右方向键vbKeyClear12Clear键vbKeyDown40下方向键vbKeyReturn13Enter键vbKeySelect41Select键vbKeyShift16Shift键vbKeyPrint42Print Screen键vbKeyControl17Ctrl键vbKeyExecute43Execute键vbKeyMenu18菜单键vbKeySnapshot44Snap Shot键vbKeyPause19Pause键vbKeyInser45Ins键vbKeyCapital20Caps Lock键vbKeyDelete46Del键vbKeyEscape27Esc键vbKeyHelp47Help键vbKeySpace32Spacebar键vbKeyNumlock144Num Lock键vbKeyPageUp33Page Up字母按健字母区数字键常数 (vbKeyA ~ vbKeyZ)<==> 键码 (65 ~ 90)<==> 字母 (A ~ Z) 健可对照 ASCII表常数 (vbKey0 ~ vbKey9 )<==> 键码 (48 ~ 57)<==> 数字 (0 ~ 9)健可对照 ASCII表数字小键盘区按键 F 功能健常数值健描述常数值健描述vbKeyNumpad096Num 0键vbKeyF1112F1键vbKeyNumpad197Num 1键vbKeyF2113F2键vbKeyNumpad298Num 2键vbKeyF3114F3键vbKeyNumpad399Num 3键vbKeyF4115F4键vbKeyNumpad4100Num 4键vbKeyF5116F5键vbKeyNumpad5101Num 5键vbKeyF6117F6键vbKeyNumpad6102Num 6键vbKeyF7118F7键vbKeyNumpad7103Num 7键vbKeyF8119F8键vbKeyNumpad8104Num 8键vbKeyF9120F9键vbKeyNumpad9105Num 9键vbKeyF10121F10 键vbKeyMultiply106(*)键vbKeyF11122F11 键vbKeyAdd107(+)键vbKeyF12123F12 键vbKeySeparator108Enter健vbKeyF13124F13 键vbKeySubtract109(-)键vbKeyF14125F14 键vbKeyDecimal110(.)键vbKeyF15126F15键vbKeyDivide111(/)键vbKeyF16127F16键庄子云:“人生天地之间,若白驹过隙,忽然而已。
键盘按键对应的十六进制编码
键盘按键对应的十六进制编码键盘按键对应的十六进制编码是一个固定的映射关系,用于表示每个按键在计算机中的唯一标识。
以下是一些常见的键盘按键及其对应的十六进制编码(也称为扫描码或虚拟键码):0x08:Backspace键(退格键)0x09:Tab键(制表键)0x0C:Clear键(数字键盘上的5,当Num Lock关闭时)0x0D:Enter键(回车键)0x10:Shift键(左或右Shift键)0x11:Ctrl键(左或右Ctrl键)0x12:Alt键(左或右Alt键)0x13:Pause键(暂停键)0x14:Caps Lock键(大写锁定键)0x1B:Esc键(逃逸键)0x20:Spacebar键(空格键)0x21:Page Up键(向上翻页键)0x22:Page Down键(向下翻页键)0x23:End键(结束键)0x24:Home键(起始键)0x25:LEFT ARROW键(左箭头键)0x26:UP ARROW键(上箭头键)0x27:RIGHT ARROW键(右箭头键)0x28:DOWN ARROW键(下箭头键)0x29:Select键(选择键)0x2A:Print键(打印键)0x2B:Execute键(执行键)0x2D:Insert键(插入键)或Num Lock关闭时的数字键盘00x2E:Delete键(删除键)或Num Lock关闭时的数字键盘.0x2F:Help键(帮助键)此外,字母、数字和特殊字符键(如A-Z、0-9、@、#等)的编码通常从0x30开始,每个键都有一个唯一的编码。
例如,0x41代表A键,0x42代表B键,依此类推。
需要注意的是,这些编码值可能会因不同的操作系统、编程语言和键盘布局而有所差异。
因此,在特定上下文中使用时,请确保查阅相关文档以获取准确的映射关系。
键盘KeyCode对照表
keycode 1 =keycode 2 =keycode 3 =keycode 4 =keycode 5 =keycode 6 =keycode7 =keycode8 = BackSpace BackSpace keycode9 = Tab Tabkeycode 10 =keycode 11 =keycode 12 = Clearkeycode 13 = Enterkeycode 14 =keycode 15 =keycode 16 = Shift_Lkeycode 17 = Control_Lkeycode 18 = Alt_Lkeycode 19 = Pausekeycode 20 = Caps_Lockkeycode 21 =keycode 22 =keycode 23 =keycode 24 =keycode 25 =keycode 26 =keycode 27 = Escape Escape keycode 28 =keycode 29 =keycode 30 =keycode 31 =keycode 32 = space spacekeycode 33 = Priorkeycode 34 = Nextkeycode 35 = Endkeycode 36 = Homekeycode 37 = Leftkeycode 38 = Upkeycode 39 = Rightkeycode 40 = Downkeycode 41 = Selectkeycode 42 = Printkeycode 43 = Executekeycode 45 = Insertkeycode 46 = Deletekeycode 47 = Helpkeycode 48 = 0 equal braceright keycode 49 = 1 exclam onesuperior keycode 50 = 2 quotedbl twosuperior keycode 51 = 3 section threesuperior keycode 52 = 4 dollarkeycode 53 = 5 percentkeycode 54 = 6 ampersandkeycode 55 = 7 slash braceleft keycode 56 = 8 parenleft bracketleft keycode 57 = 9 parenright bracketright keycode 58 =keycode 59 =keycode 60 =keycode 61 =keycode 62 =keycode 63 =keycode 64 =keycode 65 = a Akeycode 66 = b Bkeycode 67 = c Ckeycode 68 = d Dkeycode 69 = e E EuroSignkeycode 70 = f Fkeycode 71 = g Gkeycode 72 = h Hkeycode 73 = i Ikeycode 74 = j Jkeycode 75 = k Kkeycode 76 = l Lkeycode 77 = m M mukeycode 78 = n Nkeycode 79 = o Okeycode 80 = p Pkeycode 81 = q Q atkeycode 82 = r Rkeycode 83 = s Skeycode 84 = t Tkeycode 85 = u Ukeycode 86 = v Vkeycode 87 = w Wkeycode 89 = y Ykeycode 90 = z Zkeycode 91 =keycode 92 =keycode 93 =keycode 94 =keycode 95 =keycode 96 = KP_0 KP_0keycode 97 = KP_1 KP_1keycode 98 = KP_2 KP_2keycode 99 = KP_3 KP_3keycode 100 = KP_4 KP_4keycode 101 = KP_5 KP_5keycode 102 = KP_6 KP_6keycode 103 = KP_7 KP_7keycode 104 = KP_8 KP_8keycode 105 = KP_9 KP_9keycode 106 = KP_Multiply KP_Multiply keycode 107 = KP_Add KP_Addkeycode 108 = KP_Separator KP_Separator keycode 109 = KP_Subtract KP_Subtract keycode 110 = KP_Decimal KP_Decimal keycode 111 = KP_Divide KP_Divide keycode 112 = F1keycode 113 = F2keycode 114 = F3keycode 115 = F4keycode 116 = F5keycode 117 = F6keycode 118 = F7keycode 119 = F8keycode 120 = F9keycode 121 = F10keycode 122 = F11keycode 123 = F12keycode 124 = F13keycode 125 = F14keycode 126 = F15keycode 127 = F16keycode 128 = F17keycode 129 = F18keycode 130 = F19keycode 131 = F20keycode 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 = acute gravekeycode 188 = comma semicolonkeycode 189 = minus underscorekeycode 190 = period colonkeycode 191 =keycode 192 = numbersign apostrophe 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 registeredkeycode 213 = guillemotleft guillemotright keycode 214 = masculine ordfemininekeycode 215 = ae AEkeycode 216 = cent yenkeycode 217 = questiondown exclamdown keycode 218 = onequarter onehalf threequarters keycode 219 =keycode 220 = less greater barkeycode 221 = plus asterisk asciitilde keycode 222 =keycode 223 =keycode 224 =keycode 225 =keycode 226 =keycode 227 = multiply divisionkeycode 228 = acircumflex Acircumflex keycode 229 = ecircumflex Ecircumflex keycode 230 = icircumflex Icircumflex keycode 231 = ocircumflex Ocircumflex keycode 232 = ucircumflex Ucircumflex keycode 233 = ntilde Ntildekeycode 234 = yacute Yacutekeycode 235 = oslash Oobliquekeycode 236 = aring Aringkeycode 237 = ccedilla Ccedillakeycode 238 = thorn THORNkeycode 239 = eth ETHkeycode 240 = diaeresis cedilla currency keycode 241 = agrave Agrave atilde Atilde keycode 242 = egrave Egravekeycode 243 = igrave Igravekeycode 244 = ograve Ograve otilde Otilde keycode 245 = ugrave Ugravekeycode 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 sterlingkeycode 254 = Mode_switch.。
键盘按键对应的编码
键盘按键对应的编码键盘按键对应的编码,用中文写如下:1. Esc键:用于取消当前操作或关闭某个窗口。
2. Tab键:用于在输入框和表格之间切换,或在多个选项卡之间切换。
3. Caps Lock键:用于切换大写和小写字母输入。
4. Shift键:用于输入大写字母或与其他按键组合使用以获得特殊字符。
5. Ctrl键(控制键):与其他按键组合使用以执行特定的操作,如Ctrl+C(复制)和Ctrl+V(粘贴)。
6. Alt键(选择键):与其他按键组合使用以执行程序中的快捷操作,如Alt+F4(关闭程序)。
7. 空格键:用于输入空格字符。
8. Enter键:用于确认输入或执行操作。
9. Backspace键:用于删除光标前方的字符。
10. Delete键:用于删除光标后方的字符。
11. 方向键(上、下、左、右):用于在文本或表格中移动光标的位置。
12. 数字键盘(0-9):用于输入数字字符。
13. 功能键(F1-F12):用于执行特定的软件功能或系统命令。
14. 小键盘的加减乘除键:用于进行基本的数学运算。
15. 左/右Shift键:用于输入大写字母或与其他按键组合使用以获得特殊字符。
16. Windows键:用于打开开始菜单或执行Windows系统命令。
17. Alt Gr键:与其他按键组合使用以输入特殊字符,如€、©和®。
18. Print Screen键:用于将屏幕截图复制到剪贴板。
19. Scroll Lock键:用于锁定屏幕滚动功能。
20. Pause/Break键:用于暂停或中断程序的执行。
以上是常见键盘按键的中文编码,用于在中文环境下使用键盘。
键盘按键码——精选推荐
键盘按键码⼀、键盘按键和键盘对应代码表:字母按键码:A <--------> 65B <--------> 66C <--------> 67D <--------> 68E <--------> 69F <--------> 70G <--------> 71H <--------> 72I <--------> 73 J <--------> 74 K <--------> 75 L <--------> 76M <--------> 77 N <--------> 78 O <--------> 79 P <--------> 80Q <--------> 81 R <--------> 82 S <--------> 83 T <--------> 84U <--------> 85 V <--------> 86 W <--------> 87 X <--------> 88Y <--------> 89 Z <--------> 90 0 <--------> 48 1 <--------> 492 <--------> 503 <--------> 514 <--------> 525 <--------> 536 <--------> 547 <--------> 558 <--------> 569 <--------> 57数字按键码:⼩键盘 1 <--------> 96 ⼩键盘 2 <--------> 97 ⼩键盘 3 <--------> 98 ⼩键盘 4 <--------> 99 ⼩键盘 5 <--------> 100 ⼩键盘 6 <--------> 101 ⼩键盘 7 <--------> 102 ⼩键盘 8 <--------> 103⼩键盘 9 <--------> 104 ⼩键盘 0 <--------> 105运算符按键码:乘号 <--------> 106 加号 <--------> 107 减号 <--------> 109⼩数点 <--------> 110 除号 <--------> 111Enter <--------> 108 (有两个Enter,这个是右下⾓的)F功能键:F1 <--------> 112 F2 <--------> 113 F3 <--------> 114 F4 <--------> 115F5 <--------> 116 F6 <--------> 117 F7 <--------> 118 F8 <--------> 119F9 <--------> 120 F10 <--------> 121 F11 <--------> 122 F12 <--------> 123特殊键盘才有:F13 <--------> 124 F14 <--------> 125 F15 <--------> 126普通功能键:Backspace <--------> 8 Tab <--------> 9 Clear <--------> 12(数字键盘关闭时,数字5)Enter <--------> 13 Shift <--------> 16 Control <--------> 17 Alt <--------> 18Esc <--------> 27 空格键 <--------> 32 Page Up <--------> 33 Page Down <--------> 34 End <--------> 35 Home <--------> 36 左箭头 <--------> 37 向上箭头↑ <--------> 38右箭头 <--------> 39 向下箭头 <--------> 40 Insert <--------> 45 Delete <--------> 46Help <--------> 47 Num Lock <--------> 144 Caps Lock <--------> 20键盘中部符号键:; : <--------> 186 = + <--------> 187- _ <--------> 189 / ? <--------> 191` ~ <--------> 192 [ { <--------> 219| <--------> 220 ] } <--------> 221'' ' <--------> 222。
键盘KeyCode对照表
键盘KeyCode对照表键盘KeyCode对照表keycode 0 =keycode 1 =keycode 2 =keycode 3 =keycode 4 =keycode 5 =keycode 6 =keycode 7 =keycode 8 = BackSpace BackSpacekeycode 9 = Tab Tabkeycode 10 =keycode 11 =keycode 12 = Clearkeycode 13 = Enterkeycode 14 =keycode 15 =keycode 16 = Shift_Lkeycode 17 = Control_Lkeycode 18 = Alt_Lkeycode 19 = Pausekeycode 20 = Caps_Lockkeycode 21 =keycode 22 =keycode 23 =keycode 24 =keycode 25 =keycode 26 =keycode 27 = Escape Escapekeycode 28 =keycode 29 =keycode 30 =keycode 31 =keycode 32 = space spacekeycode 33 = Priorkeycode 34 = Nextkeycode 35 = Endkeycode 36 = Homekeycode 37 = Leftkeycode 38 = Upkeycode 39 = Rightkeycode 40 = Downkeycode 41 = Selectkeycode 42 = Printkeycode 43 = Executekeycode 44 =keycode 45 = Insertkeycode 46 = Deletekeycode 47 = Helpkeycode 48 = 0 equal bracerightkeycode 49 = 1 exclam onesuperiorkeycode 50 = 2 quotedbl twosuperiorkeycode 51 = 3 section threesuperiorkeycode 52 = 4 dollarkeycode 53 = 5 percentkeycode 54 = 6 ampersandkeycode 55 = 7 slash braceleftkeycode 56 = 8 parenleft bracketleftkeycode 57 = 9 parenright bracketrightkeycode 58 =keycode 59 =keycode 60 =keycode 61 =keycode 62 =keycode 63 =keycode 64 =keycode 65 = a Akeycode 66 = b Bkeycode 67 = c Ckeycode 68 = d Dkeycode 69 = e E EuroSignkeycode 70 = f Fkeycode 71 = g Gkeycode 72 = h Hkeycode 73 = i Ikeycode 74 = j Jkeycode 75 = k Kkeycode 76 = l Lkeycode 77 = m M mukeycode 78 = n Nkeycode 79 = o Okeycode 80 = p Pkeycode 81 = q Q atkeycode 82 = r Rkeycode 83 = s Skeycode 84 = t Tkeycode 85 = u Ukeycode 86 = v Vkeycode 87 = w Wkeycode 88 = x Xkeycode 89 = y Ykeycode 90 = z Zkeycode 91 =keycode 92 =keycode 93 =keycode 94 =keycode 95 =keycode 96 = KP_0 KP_0keycode 97 = KP_1 KP_1keycode 98 = KP_2 KP_2keycode 99 = KP_3 KP_3keycode 100 = KP_4 KP_4keycode 101 = KP_5 KP_5keycode 102 = KP_6 KP_6keycode 103 = KP_7 KP_7keycode 104 = KP_8 KP_8keycode 105 = KP_9 KP_9keycode 106 = KP_Multiply KP_Multiply keycode 107 = KP_Add KP_Add keycode 108 = KP_Separator KP_Separator keycode 109 = KP_Subtract KP_Subtract keycode 110 = KP_Decimal KP_Decimal keycode 111 = KP_Divide KP_Divide keycode 112 = F1keycode 113 = F2keycode 114 = F3keycode 115 = F4keycode 116 = F5keycode 117 = F6keycode 118 = F7keycode 119 = F8keycode 120 = F9keycode 121 = F10keycode 122 = F11keycode 123 = F12keycode 124 = F13keycode 125 = F14keycode 126 = F15keycode 127 = F16keycode 128 = F17keycode 129 = F18keycode 130 = F19keycode 131 = F20keycode 132 = F21keycode 133 = F22keycode 134 = F23keycode 135 = F24keycode 136 = Num_Lockkeycode 137 = Scroll_Lockkeycode 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 = acute gravekeycode 188 = comma semicolon keycode 189 = minus underscore keycode 190 = period colon keycode 191 =keycode 192 = numbersign apostrophe 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 registeredkeycode 213 = guillemotleft guillemotright keycode 214 = masculine ordfeminine keycode 215 = ae AEkeycode 216 = cent yenkeycode 217 = questiondown exclamdown keycode 218 = onequarter onehalf threequarters keycode 219 =keycode 220 = less greater barkeycode 221 = plus asterisk asciitilde keycode 222 =keycode 223 =keycode 224 =keycode 225 =keycode 226 =keycode 227 = multiply divisionkeycode 228 = acircumflex Acircumflex keycode 229 = ecircumflex Ecircumflex keycode 230 = icircumflex Icircumflex keycode 231 = ocircumflex Ocircumflex keycode 232 = ucircumflex Ucircumflex keycode 233 = ntilde Ntildekeycode 234 = yacute Yacutekeycode 235 = oslash Oobliquekeycode 236 = aring Aringkeycode 237 = ccedilla Ccedillakeycode 238 = thorn THORNkeycode 239 = eth ETHkeycode 240 = diaeresis cedilla currency keycode 241 = agrave Agrave atilde Atilde keycode 242 = egrave Egravekeycode 243 = igrave Igravekeycode 244 = ograve Ograve otilde Otilde keycode 245 = ugrave Ugravekeycode 246 = adiaeresis Adiaeresis keycode 247 = ediaeresis Ediaeresis keycode 248 = idiaeresis Idiaeresiskeycode 249 = odiaeresis Odiaeresis keycode 250 = udiaeresis Udiaeresis keycode 251 = ssharp question backslash keycode 252 = asciicircum degreekeycode 253 = 3 sterlingkeycode 254 = Mode_switch。
js 实现 启用屏幕键盘功能的代码
在网页开发中,屏幕键盘是一种常见的功能,它可以为用户提供在触摸屏设备上输入文本的便捷方式。
而要实现屏幕键盘功能,我们常常会用到JavaScript语言。
下面我们来介绍一下如何使用JavaScript来实现启用屏幕键盘功能的代码。
1. 我们需要在HTML文件中创建一个文本输入框,供用户输入文字。
我们可以使用如下的代码来创建文本输入框:```html<input type="text" id="input" />```2. 接下来,我们需要编写JavaScript代码来实现屏幕键盘功能。
我们需要获取文本输入框的引用,然后为其绑定一个点击事件。
当用户点击文本输入框时,屏幕键盘就会显示出来。
以下是代码示例:```javascriptwindow.onload = function() {var input = document.getElementById('input');input.onclick = function() {// 显示屏幕键盘的代码}}```3. 在点击事件中,我们需要编写代码来显示屏幕键盘。
通常情况下,我们会使用CSS来控制屏幕键盘的样式,同时使用JavaScript来控制它的显示和隐藏。
以下是一个简单的示例代码:```javascriptwindow.onload = function() {var input = document.getElementById('input');input.onclick = function() {var keyboard = document.getElementById('keyboard');keyboard.style.display = 'block';}}```在这段代码中,我们首先获取屏幕键盘的引用,然后将其显示出来。
微型计算机 基础与应用 第二章 汉字录入
51 N 已半巳满不出己 左框折尸心和羽 52 B 子耳了也框向上 53 V 女刀九臼山朝西(彐) 54 C 又巴马,丢矢矣(厶) 55 X 慈母无心弓和匕 幼无力(幺)
一般F1表示帮助。 在Windows系统中,F2表示重命名,F5表示刷新; 在Word中,F2表示保存,F5表示查找和替换。
返回本 章首页
3、编辑键区
返回本 章首页
共有13个键。 Print Screen 为屏幕打印键。 Scroll Lock屏幕锁定键 Pause键 Insert键 Delete键 Home键(归位键) End键 Page Up键(向前翻页键) Page Down键(向后翻页键) ←↑↓→(光标移动键)
2、功能键区
Esc
F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12
位于键盘上方 ,包括Esc及F1~F12键,共13个。 Esc键(取消键)一般表示退出某程序或放弃某操 作,用于放弃或中止某些正在执行的命令或程序。 F1~F12则在不同的软件中有不同的意义:
搜狗拼音与QQ拼音输入法
返回本 章首页
数字的输入和中文标点符号
数字的输入
当汉字编码输入框中有编码(不空)时,不能输入数字。这 时需要按一下退格键,或者按ESC键清除编码框,清除后 即可输入数字。 当汉字编码输入框为空时,可直接按数字键输入数字。
中文标点符号的输入
中英文标点符号切换:Ctrl+·
7
HOME
↑
5
4
6
+
←
→
3
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
76 keycode 108 = KP_Separator KP_Separator
77 keycode 109 = KP_Subtract KP_Subtract
78 keycode 110 = KP_Decimal KP_Decimal
79 keycode 111 = KP_Divide KP_Divide
96 keycode 126 = F15
97 keycode 127 = F16
98 keycode 128 = F17
99 keycode 129 = F18
100 keycode 130 = F19
101 keycode 131 = F20
102 keycode 132 = F21
6 keycode 17 = Control_L
7 keycode 18 = Alt_L
8 keycode 19 = Pause
9 keycode 20 = Caps_Lock
10 keycode 27 = Escape Escape
11 keycode 32 = space space
155 eg:if(event.keyCode==13)alert(“enter!”);
156 键值对应表
157 A 0X65 U 0X85
158 B 0X66 V 0X86
159 C 0X67 W 0X87
160 D 0X68 X 0X88
161 E 0X69 Y 0X89
176 T 0X84 ENTER 0XD
177
178
如果要使用组合键,则可以利用event.ctrlKey,event.shiftKey,event .altKey判断是否按下了ctrl键、shift键以及alt键
//========================================================================================================\\
145 keycode 247 = ediaeresis Ediaeresis
146 keycode 248 = idiaeresis Idiaeresis
147 keycode 249 = odiaeresis Odiaeresis
148 keycode 250 = udiaeresis Udiaeresis
162 F 0X70 Z 0X90
163 G 0X71 0 0X48
164 H 0X72 1 0X49
165 I 0X73 2 0X50
166 J 0X74 3 0X51
167 K 0X75 4 0X52
168 L 0X76 5 0X53
141 keycode 243 = igrave Igrave
142 keycode 244 = ograve Ograve otilde Otilde
143 keycod46 = adiaeresis Adiaeresis
64 keycode 97 = KP_1 KP_1
65 keycode 98 = KP_2 KP_2
66 keycode 99 = KP_3 KP_3
67 keycode 100 = KP_4 KP_4
68 keycode 101 = KP_5 KP_5
69 keycode 102 = KP_6 KP_6
89 keycode 119 = F8
90 keycode 120 = F9
91 keycode 121 = F10
92 keycode 122 = F11
93 keycode 123 = F12
94 keycode 124 = F13
95 keycode 125 = F14
19 keycode 40 = Down
20 keycode 41 = Select
21 keycode 42 = Print
22 keycode 43 = Execute
23 keycode 45 = Insert
24 keycode 46 = Delete
25 keycode 47 = Help
12 keycode 33 = Prior
13 keycode 34 = Next
14 keycode 35 = End
15 keycode 36 = Home
16 keycode 37 = Left
17 keycode 38 = Up
18 keycode 39 = Right
30 keycode 52 = 4 dollar
31 keycode 53 = 5 percent
32 keycode 54 = 6 ampersand
33 keycode 55 = 7 slash braceleft
34 keycode 56 = 8 parenleft bracketleft
80 keycode 112 = F1
81 keycode 113 = F2
82 keycode 114 = F3
83 keycode 115 = F4
84
85
86 keycode 116 = F5
87 keycode 117 = F6
88 keycode 118 = F7
35 keycode 57 = 9 parenright bracketright
36 keycode 65 = a A
37 keycode 66 = b B
38 keycode 67 = c C
39 keycode 68 = d D
40 keycode 69 = e E EuroSign
123 keycode 221 = plus asterisk asciitilde
124 keycode 227 = multiply division
125
126 keycode 228 = acircumflex Acircumflex
127 keycode 229 = ecircumflex Ecircumflex
103 keycode 133 = F22
104 keycode 134 = F23
105 keycode 135 = F24
106 keycode 136 = Num_Lock
107 keycode 137 = Scroll_Lock
108 keycode 187 = acute grave
键盘键和键盘键控制值一览表(键盘按键对应代码表)(序号后面为空的表示:无)
1 keycode 8 = BackSpace BackSpace
2 keycode 9 = Tab Tab
3 keycode 12 = Clear
4 keycode 13 = Enter
5 keycode 16 = Shift_L
137 keycode 239 = eth ETH
138 keycode 240 = diaeresis cedilla currency
139 keycode 241 = agrave Agrave atilde Atilde
140 keycode 242 = egrave Egrave
149 keycode 251 = ssharp question backslash
150 keycode 252 = asciicircum degree
151 keycode 253 = 3 sterling
152 keycode 254 = Mode_switch
153
154 使用event对象的keyCode属性判断输入的键值
119 keycode 216 = cent yen
120 keycode 217 = questiondown exclamdown
121 keycode 218 = onequarter onehalf threequarters
122 keycode 220 = less greater bar
114 keycode 211 =
115 keycode 212 = copyright registered
116 keycode 213 = guillemotleft guillemotright
117 keycode 214 = masculine ordfeminine
118 keycode 215 = ae AE
56 keycode 84 = t T
57 keycode 85 = u U
58 keycode 86 = v V
59 keycode 87 = w W
60 keycode 88 = x X
61 keycode 89 = y Y
62 keycode 90 = z Z
63 keycode 96 = KP_0 KP_0
132 keycode 234 = yacute Yacute
133 keycode 235 = oslash Ooblique
134 keycode 236 = aring Aring
135 keycode 237 = ccedilla Ccedilla
136 keycode 238 = thorn THORN
49 keycode 77 = m M mu
50 keycode 78 = n N
51 keycode 79 = o O