【KeyCode 键码】
Key codes returned by Event.keyCode. These map directly to a physical key on the keyboard.
KeyCode是由Event.keyCode返回的。这些直接映射到键盘上的物理键。
Values值
-
Not assigned (never is pressed)
未分配(永不被按下)。 -
The backspace key //退格键。
-
The forward delete key //正向删除键。
-
The tab key //制表键。
-
The Clear key //清除键。
-
Return key //回车键。
-
Pause on PC machines //PC上的暂停键。
-
Escape key //退出键。
-
Space key //空格键。
-
Numeric keypad 0 //数字小键盘0。
-
Numeric keypad 1 //数字小键盘1。
-
Numeric keypad 2 //数字小键盘2。
-
Numeric keypad 3 //数字小键盘3。
-
Numeric keypad 4 //数字小键盘4。
-
Numeric keypad 5 //数字小键盘5。
-
Numeric keypad 6 //数字小键盘6。
-
Numeric keypad 7 //数字小键盘7。
-
Numeric keypad 8 //数字小键盘8。
-
Numeric keypad 9 //数字小键盘9。
-
Numeric keypad '.' // 数字小键盘的句点'.'。
-
Numeric keypad '/' // 数字小键盘的除号'/'。
-
Numeric keypad '*' //数字小键盘的乘号 '*'。
-
Numeric keypad '-' //数字小键盘的减号 '-'。
-
Numeric keypad '+' //数字小键盘的加号 '+'。
-
Numeric keypad enter //数字小键盘的回车键。
-
Numeric keypad '=' //数字小键盘的等号键'='。
-
Up arrow key //上箭头键。
-
Down arrow key //下箭头键。
-
Right arrow key //右箭头键。
-
Left arrow key //左箭头键。
-
Insert key key //插入键。
-
Home key //起始键。
-
End key //结束键。
-
Page up //上页。
-
Page down //下页。
-
F1 function key //F1功能键。
-
F2 function key //F2功能键。
-
F3 function key //F3功能键。
-
F4 function key //F4功能键。
-
F5 function key //F5功能键。
-
F6 function key //F6功能键。
-
F7 function key //F7功能键。
-
F8 function key //F8功能键。
-
F9 function key //F9功能键。
-
F10 function key //F10功能键。
-
F11 function key //F11功能键。
-
F12 function key //F12功能键。
-
F13 function key //F13功能键。
-
F14 function key //F14功能键。
-
F15 function key //F15功能键。
-
The '0' key on the top of the alphanumeric keyboard.
键盘顶部的数字键'0'。 -
The '1' key on the top of the alphanumeric keyboard.
键盘顶部的数字键'1'。 -
The '2' key on the top of the alphanumeric keyboard.
键盘顶部的数字键'2'。 -
The '3' key on the top of the alphanumeric keyboard.
键盘顶部的数字键'3'。 -
The '4' key on the top of the alphanumeric keyboard.
键盘顶部的数字键'4'。 -
The '5' key on the top of the alphanumeric keyboard.
键盘顶部的数字键'5'。 -
The '6' key on the top of the alphanumeric keyboard.
键盘顶部的数字键'6'。 -
The '7' key on the top of the alphanumeric keyboard.
键盘顶部的数字键'7'。 -
The '8' key on the top of the alphanumeric keyboard.
键盘顶部的数字键'8'。 -
The '9' key on the top of the alphanumeric keyboard.
键盘顶部的数字键'9'。 -
Explaim key //感叹号键'!'。
-
Double quote key //双引号键。
-
Hash key //哈希键。
-
Dollar sign key //美元符号键。
-
Ampersand key //和, &(and 的符号)键。
-
Quote key //单引号键。
-
Left Parent key //左括号键。
-
Right Parent key //右括号键。
-
Asterisk key //星号键 * 。
-
Plus key //加号键 + 。
-
Comma ',' key //逗号键 , 。
-
Minus '-' key //减号键 - 。
-
Period '.' key //句号键 . 。
-
Slash '/' key //斜杠键 / 。
-
Colon ':' key //冒号键 : 。
-
Semicolon ';' key //分号键 ; 。
-
Less '<' key //小于号键 < 。
-
Equals '=' key //等于号键 = 。
-
Greater '>' key //大于号键 > 。
-
Question mark '?' key //问号键 ? 。
-
At key //@符号键。
-
Left bracket key //左方括号键 [ 。
-
Backslash key //反斜杠键 \ 。
-
Right bracket key //右方括号键 ] 。
-
Caret key //脱字符键 ^ 。
-
Underscore '_' key //下划线键 _ 。
-
Back quote key //反引号键 。
-
'a' key // a键
-
'b' key // b键
-
'c' key // c键
-
'd' key // d键
-
'e' key // e键
-
'f' key // f键
-
'g' key // g键
-
'h' key // h键
-
'i' key // i键
-
'j' key // j键
-
'k' key // k键
-
'l' key // l键
-
'm' key // m键
-
'n' key // n键
-
'o' key // o键
-
'p' key // p键
-
'q' key // q键
-
'r' key // r键
-
's' key // s键
-
't' key // t键
-
'u' key // u键
-
'v' key // v键
-
'w' key // w键
-
'x' key // x键
-
'y' key // y键
-
'z' key // z键
-
Numlock key //数字锁定键 。
-
Capslock key //大写锁定键 。
-
Scroll lock key //滚动锁定键 。
-
Right shift key //右上档键。
-
Left shift key //左上档键。
-
Right Control key //右控制键。
-
Left Control key //左控制键。
-
Right Alt key //右更改键。
-
Left Alt key //左更改键。
-
Left Apple key //左苹果键。
-
Left Windows key //左Windows键。
-
Right Apple key //右苹果键。
-
Right Windows key //右Windows键。
-
Alt Gr key //右侧更改键。
-
Help key //帮助键。
-
Print key //打印键。
-
Sys Req key //系统请求键。
-
Break key //中断键。
-
Menu key //菜单键。
-
First (primary) mouse button
第一个(主)鼠标键(鼠标左键)。 -
Second (secondary) mouse button
第二个(次)鼠标键(鼠标右键)。 -
Third mouse button //第三个鼠标键(鼠标中键)。
-
Fourth mouse button //第四个鼠标键
-
Fifth mouse button //第五个鼠标键。
-
Sixth mouse button //第六个鼠标键。
-
Seventh mouse button //第七个鼠标键。
-
Button 0 on any joystick //手柄按键0。
-
Button 1 on any joystick //手柄按键1。
-
Button 2 on any joystick //手柄按键2。
-
Button 3 on any joystick //手柄按键3。
-
Button 4 on any joystick //手柄按键4。
-
Button 5 on any joystick //手柄按键5。
-
Button 6 on any joystick //手柄按键6。
-
Button 7 on any joystick //手柄按键7。
-
Button 8 on any joystick //手柄按键8。
-
Button 9 on any joystick //手柄按键9。
-
Button 10 on any joystick //手柄按键10。
-
Button 11 on any joystick //手柄按键11。
-
Button 12 on any joystick //手柄按键12。
-
Button 13 on any joystick //手柄按键13。
-
Button 14 on any joystick //手柄按键14。
-
Button 15 on any joystick //手柄按键15。
-
Button 16 on any joystick //手柄按键16。
-
Button 17 on any joystick //手柄按键17。
-
Button 18 on any joystick //手柄按键18。
-
Button 19 on any joystick //手柄按键19。
-
Button 0 on first joystick //第一个手柄按键0。
-
Button 1 on first joystick //第一个手柄按键1。
-
Button 2 on first joystick //第一个手柄按键2。
-
Button 3 on first joystick //第一个手柄按键3。
-
Button 4 on first joystick //第一个手柄按键4。
-
Button 5 on first joystick //第一个手柄按键5。
-
Button 6 on first joystick //第一个手柄按键6。
-
Button 7 on first joystick //第一个手柄按键7。
-
Button 8 on first joystick //第一个手柄按键8。
-
Button 9 on first joystick //第一个手柄按键9。
-
Button 10 on first joystick //第一个手柄按键10。
-
Button 11 on first joystick //第一个手柄按键11。
-
Button 12 on first joystick //第一个手柄按键12。
-
Button 13 on first joystick //第一个手柄按键13。
-
Button 14 on first joystick //第一个手柄按键14。
-
Button 15 on first joystick //第一个手柄按键15。
-
Button 16 on first joystick //第一个手柄按键16。
-
Button 17 on first joystick //第一个手柄按键17。
-
Button 18 on first joystick //第一个手柄按键18。
-
Button 19 on first joystick //第一个手柄按键19。
-
Button 0 on second joystick //第二个手柄按键0。
-
Button 1 on second joystick //第二个手柄按键1。
-
Button 2 on second joystick //第二个手柄按键2。
-
Button 3 on second joystick //第二个手柄按键3。
-
Button 4 on second joystick //第二个手柄按键4。
-
Button 5 on second joystick //第二个手柄按键5。
-
Button 6 on second joystick //第二个手柄按键6。
-
Button 7 on second joystick //第二个手柄按键7。
-
Button 8 on second joystick //第二个手柄按键8。
-
Button 9 on second joystick //第二个手柄按键9。
-
Button 10 on second joystick //第二个手柄按键10。
-
Button 11 on second joystick //第二个手柄按键11。
-
Button 12 on second joystick //第二个手柄按键12。
-
Button 13 on second joystick //第二个手柄按键13。
-
Button 14 on second joystick //第二个手柄按键14。
-
Button 15 on second joystick //第二个手柄按键15。
-
Button 16 on second joystick //第二个手柄按键16。
-
Button 17 on second joystick //第二个手柄按键17。
-
Button 18 on second joystick //第二个手柄按键18。
-
Button 19 on second joystick //第二个手柄按键19。
-
Button 0 on third joystick //第三个手柄按键0。
-
Button 1 on third joystick //第三个手柄按键1。
-
Button 2 on third joystick //第三个手柄按键2。
-
Button 3 on third joystick //第三个手柄按键3。
-
Button 4 on third joystick //第三个手柄按键4。
-
Button 5 on third joystick //第三个手柄按键5。
-
Button 6 on third joystick //第三个手柄按键6。
-
Button 7 on third joystick //第三个手柄按键7。
-
Button 8 on third joystick //第三个手柄按键8。
-
Button 9 on third joystick //第三个手柄按键9。
-
Button 10 on third joystick //第三个手柄按键10。
-
Button 11 on third joystick //第三个手柄按键11。
-
Button 12 on third joystick //第三个手柄按键12。
-
Button 13 on third joystick //第三个手柄按键13。
-
Button 14 on third joystick //第三个手柄按键14。
-
Button 15 on third joystick //第三个手柄按键15。
-
Button 16 on third joystick //第三个手柄按键16。
-
Button 17 on third joystick //第三个手柄按键17。
-
Button 18 on third joystick //第三个手柄按键18。
-
Button 19 on third joystick //第三个手柄按键19。
【KeyCode 键码】的更多相关文章
- 【Unity3D】 KeyCode 键码
Key codes returned by Event.keyCode. These map directly to a physical key on the keyboard. KeyCode是由 ...
- python gui之tkinter事件处理
事件一览表 事件 代码 备注 鼠标左键单击按下 1/Button-1/ButtonPress-1 鼠标左键单击松开 ButtonRelease-1 鼠标右键单击 3 鼠标左键双击 Doub ...
- 键盘事件keydown、keypress、keyup随笔整理总结(摘抄)
原文1:http://www.cnblogs.com/silence516/archive/2013/01/25/2876611.html 原文2:http://www.cnblogs.com/leo ...
- keydown - > keypress - > keyup 用法和区别
英文输入法: 事件触发顺序:keydown - > keypress - > keyup 中文输入法: firfox:输入触发keydown,回车确认输入触发keyup chr ...
- keydown - > keypress - > keyup
英文输入法: 事件触发顺序:keydown - > keypress - > keyup 中文输入法: firfox:输入触发keydown,回车确认输入触发keyup chr ...
- Day049--jQuery的文档操作和事件介绍
今日内容 DOM操作(CRUD) js中DOM document.createElement('p') appendChild() insertBefore() removeChild() 创建元素 ...
- 详解键盘事件(keydown,keypress,keyup)
一.键盘事件基础 1.定义 keydown:按下键盘键 keypress:紧接着keydown事件触发(只有按下字符键时触发) keyup:释放键盘键 顺序为:keydown -> keypre ...
- 事件对象event
每个事件都有默认事件event对象 e.target 事件目标对象 e.keycode 键码 e.stopPropogation();//阻止默认事件
- U3D Input类之键位输入GetKey
Input类中包含许多属性和方法,下面介绍一下和键盘输入有关的内容 一.有关接收键盘信息的属性 属性名 类型 属性类型 含义 anyKey bool get 当前是否按住任意键或鼠标按钮 anyKey ...
随机推荐
- Django分析之如何自定义manage命令
我们都用过Django的manage.py的命令,而manage.py是在我们创建Django项目的时候就自动生成在根目录下的一个命令行工具,它可以执行一些简单的命令,其功能是将Django proj ...
- event
当一个事件被调用后,它会收到一个参数,第一个参数就是事件对象,事件对象包含type, target, timestamp三个. 类型:事件的名称,例如:点击目标:事件的目标元素时间戳:事件触发的时间
- html 之input标签height设置问题
今天针对这个问题纠结了很久 <input type="button" value="xx" style="height:99px;" ...
- MySQL:索引工作原理
索引查找:通过索引键找到索引的叶子节点,再通过叶子节点的标记快速找到表中对应的行数据,再返回指定的列 索引找查是通过索引键定先位到一块局部区域,再开始扫描匹配的数据的. 为什么需要索引(Why is ...
- 李洪强iOS经典面试题139-Swift
李洪强iOS经典面试题139-Swift Swift 网上有很多Swift的语法题,但是Swift现在语法还未稳定,所以在这里暂时不贴出语法题,可以自行搜索. Swift和Objective-C的联系 ...
- 【转】Maven Jetty 插件的问题(css/js等目录死锁)的解决
Maven Jetty 插件的问题(css/js等目录死锁,不能自动刷新)的解决: 1. 打开下面的目录:C:\Users\用户名\.m2\repository\org\eclipse\jetty ...
- 【iCore3应用开发平台】发布 iCore3 应用开发平台PID控制代码
说明:1.本代码包包含FPGA和STM32F407两部分内容2.FPGA工程为出厂代码FPGA工程,版本为REV43.STM32F407为只含PID控制的ARM工程4.在使用风扇过程中,请勿将手伸入扇 ...
- [IT新应用]家用NAS,自建“360云盘”
360云盘也快要离开了.同事中有人开始尝试使用群晖NAS.西数的NAS来自建云了. [功能对比] [选择参数] [口碑评价]
- 一起来做webgame,《卡片魔兽》(一)基础战斗
写在前面的话 这不是教程,只是博主在娱乐过程中的一些小结记录.博主水平有限,没有什么高级的东西,只是将一些小的知识点结合一下,做这么一个养成类型的卡片页面游戏(=.=!有点绕).做一个完整的游戏,涉及 ...
- 前端页面使用 Json对象与Json字符串之间的互相转换
前言 在前端页面很多时候都会用到Json这种格式的数据,最近没有前端,后端的我也要什么都要搞,对于Json对象与Json字符串之间的转换终于摸清楚了几种方式,归纳如下! 一:Json对象转换为json ...