首页 技术 正文
技术 2022年11月17日
0 收藏 437 点赞 4,588 浏览 7844 个字

Key codes returned by Event.keyCode. These map directly to a physical key
on the keyboard.

KeyCode是由Event.keyCode返回的。

这些直接映射到键盘上的物理键。

Values值

  • NoneNot assigned (never is pressed)

    未分配(永不被按下)。

  • BackspaceThe backspace key //退格键。
  • DeleteThe forward delete key //正向删除键。
  • TabThe tab key //制表键。
  • ClearThe Clear key //清除键。

  • ReturnReturn key //回车键。
  • PausePause on PC machines //PC上的暂停键。
  • EscapeEscape key //退出键。
  • SpaceSpace key //空格键。

  • Keypad0Numeric keypad 0 //数字小键盘0。
  • Keypad1Numeric keypad 1 //数字小键盘1。
  • Keypad2Numeric keypad 2 //数字小键盘2。

  • Keypad3Numeric keypad 3 //数字小键盘3。
  • Keypad4Numeric keypad 4 //数字小键盘4。

  • Keypad5Numeric keypad 5 //数字小键盘5。
  • Keypad6Numeric keypad 6 //数字小键盘6。

  • Keypad7Numeric keypad 7 //数字小键盘7。

  • Keypad8Numeric keypad 8 //数字小键盘8。
  • Keypad9Numeric keypad 9 //数字小键盘9。
  • KeypadPeriodNumeric keypad ‘.’ // 数字小键盘的句点’.’。

  • KeypadDivideNumeric keypad ‘/’ // 数字小键盘的除号’/’。
  • KeypadMultiplyNumeric keypad ‘*’ //数字小键盘的乘号 ‘*’。
  • KeypadMinusNumeric keypad ‘-‘ //数字小键盘的减号 ‘-‘。
  • KeypadPlusNumeric keypad ‘+’ //数字小键盘的加号 ‘+’。
  • KeypadEnterNumeric keypad enter //数字小键盘的回车键。
  • KeypadEqualsNumeric keypad ‘=’ //数字小键盘的等号键’=’。
  • UpArrowUp arrow key //上箭头键。
  • DownArrowDown arrow key //下箭头键。

  • RightArrowRight arrow key //右箭头键。
  • LeftArrowLeft arrow key //左箭头键。

  • InsertInsert key key //插入键。
  • HomeHome key //起始键。
  • EndEnd key //结束键。
  • PageUpPage up //上页。

  • PageDownPage down //下页。

  • F1F1 function key //F1功能键。
  • F2F2 function key //F2功能键。

  • F3F3 function key //F3功能键。
  • F4F4 function key //F4功能键。

  • F5F5 function key //F5功能键。
  • F6F6 function key //F6功能键。
  • F7F7 function key //F7功能键。
  • F8F8 function key //F8功能键。

  • F9F9 function key //F9功能键。
  • F10F10 function key //F10功能键。
  • F11F11 function key //F11功能键。
  • F12F12 function key //F12功能键。

  • F13F13 function key //F13功能键。
  • F14F14 function key //F14功能键。

  • F15F15 function key //F15功能键。
  • Alpha0The ‘0’ key on the top of the alphanumeric keyboard.

    键盘顶部的数字键’0’。

  • Alpha1The ‘1’ key on the top of the alphanumeric keyboard.

    键盘顶部的数字键’1’。

  • Alpha2The ‘2’ key on the top of the alphanumeric keyboard.

    键盘顶部的数字键’2’。

  • Alpha3The ‘3’ key on the top of the alphanumeric keyboard.

    键盘顶部的数字键’3’。

  • Alpha4The ‘4’ key on the top of the alphanumeric keyboard.

    键盘顶部的数字键’4’。

  • Alpha5The ‘5’ key on the top of the alphanumeric keyboard.

    键盘顶部的数字键’5’。

  • Alpha6The ‘6’ key on the top of the alphanumeric keyboard.

    键盘顶部的数字键’6’。

  • Alpha7The ‘7’ key on the top of the alphanumeric keyboard.

    键盘顶部的数字键’7’。

  • Alpha8The ‘8’ key on the top of the alphanumeric keyboard.

    键盘顶部的数字键’8’。

  • Alpha9The ‘9’ key on the top of the alphanumeric keyboard.

    键盘顶部的数字键’9’。

  • ExclaimExplaim key //感叹号键’!’。
  • DoubleQuoteDouble quote key //双引號键。
  • HashHash key //哈希键。
  • DollarDollar sign key //美元符号键。

  • AmpersandAmpersand key //和,  &(and 的符号)键。
  • QuoteQuote key //单引號键。

  • LeftParenLeft Parent key //左括号键。

  • RightParenRight Parent key //右括号键。
  • AsteriskAsterisk key //星号键 * 。
  • PlusPlus key //加号键 + 。
  • CommaComma ‘,’ key //逗号键 , 。
  • MinusMinus ‘-‘ key //减号键 – 。
  • PeriodPeriod ‘.’ key //句号键 . 。
  • SlashSlash ‘/’ key //斜杠键 / 。
  • ColonColon ‘:’ key //冒号键 : 。

  • SemicolonSemicolon ‘;’ key //分号键 ; 。
  • LessLess ‘<‘ key //小于号键 < 。
  • EqualsEquals ‘=’ key //等于号键 = 。
  • GreaterGreater ‘>’ key //大于号键 > 。
  • QuestionQuestion mark ‘?’ key //问号键 ? 。
  • AtAt key //@符号键。

  • LeftBracketLeft bracket key //左方括号键 [ 。
  • BackslashBackslash key //反斜杠键 \ 。
  • RightBracketRight bracket key //右方括号键 ] 。
  • CaretCaret key //脱字符键 ^ 。
  • UnderscoreUnderscore ‘_’ key //下划线键 _ 。
  • BackQuoteBack quote key //反引號键 。

  • A‘a’ key // a键
  • B‘b’ key // b键
  • C‘c’ key // c键
  • D‘d’ key // d键
  • E‘e’ key // e键
  • F‘f’ key // f键
  • G‘g’ key // g键
  • H‘h’ key // h键
  • I‘i’ key // i键
  • J‘j’ key // j键
  • K‘k’ key // k键
  • L‘l’ key // l键
  • M‘m’ key // m键
  • N‘n’ key // n键
  • O‘o’ key // o键
  • P‘p’ key // p键
  • Q‘q’ key // q键
  • R‘r’ key // r键
  • S‘s’ key // s键
  • T‘t’ key // t键
  • U‘u’ key // u键
  • V‘v’ key // v键
  • W‘w’ key // w键
  • X‘x’ key // x键
  • Y‘y’ key // y键
  • Z‘z’ key // z键
  • NumlockNumlock key //数字锁定键 。
  • CapsLockCapslock key //大写锁定键 。
  • ScrollLockScroll lock key //滚动锁定键 。

  • RightShiftRight shift key //右上档键。
  • LeftShiftLeft shift key //左上档键。
  • RightControlRight Control key //右控制键。
  • LeftControlLeft Control key //左控制键。
  • RightAltRight Alt key //右更改键。
  • LeftAltLeft Alt key //左更改键。
  • LeftAppleLeft Apple key //左苹果键。

  • LeftWindowsLeft Windows key //左Windows键。
  • RightAppleRight Apple key //右苹果键。

  • RightWindowsRight Windows key //右Windows键。
  • AltGrAlt Gr key //右側更改键。
  • HelpHelp key //帮助键。
  • PrintPrint key //打印键。
  • SysReqSys Req key //系统请求键。
  • BreakBreak key //中断键。
  • MenuMenu key //菜单键。

  • Mouse0First (primary) mouse button 

    第一个(主)鼠标键(鼠标左键)。

  • Mouse1Second (secondary) mouse button

    第二个(次)鼠标键(鼠标右键)。

  • Mouse2Third mouse button //第三个鼠标键(鼠标中键)。
  • Mouse3Fourth mouse button //第四个鼠标键
  • Mouse4Fifth mouse button //第五个鼠标键。
  • Mouse5Sixth mouse button //第六个鼠标键。

  • Mouse6Seventh mouse button //第七个鼠标键。
  • JoystickButton0Button 0 on any joystick //手柄按键0。
  • JoystickButton1Button 1 on any joystick //手柄按键1。
  • JoystickButton2Button 2 on any joystick //手柄按键2。

  • JoystickButton3Button 3 on any joystick //手柄按键3。

  • JoystickButton4Button 4 on any joystick //手柄按键4。

  • JoystickButton5Button 5 on any joystick //手柄按键5。
  • JoystickButton6Button 6 on any joystick //手柄按键6。
  • JoystickButton7Button 7 on any joystick //手柄按键7。
  • JoystickButton8Button 8 on any joystick //手柄按键8。
  • JoystickButton9Button 9 on any joystick //手柄按键9。
  • JoystickButton10Button 10 on any joystick //手柄按键10。
  • JoystickButton11Button 11 on any joystick //手柄按键11。
  • JoystickButton12Button 12 on any joystick //手柄按键12。
  • JoystickButton13Button 13 on any joystick //手柄按键13。
  • JoystickButton14Button 14 on any joystick //手柄按键14。
  • JoystickButton15Button 15 on any joystick //手柄按键15。
  • JoystickButton16Button 16 on any joystick //手柄按键16。
  • JoystickButton17Button 17 on any joystick //手柄按键17。
  • JoystickButton18Button 18 on any joystick //手柄按键18。
  • JoystickButton19Button 19 on any joystick //手柄按键19。
  • Joystick1Button0Button 0 on first joystick //第一个手柄按键0。
  • Joystick1Button1Button 1 on first joystick //第一个手柄按键1。
  • Joystick1Button2Button 2 on first joystick //第一个手柄按键2。
  • Joystick1Button3Button 3 on first joystick //第一个手柄按键3。
  • Joystick1Button4Button 4 on first joystick //第一个手柄按键4。

  • Joystick1Button5Button 5 on first joystick //第一个手柄按键5。
  • Joystick1Button6Button 6 on first joystick //第一个手柄按键6。
  • Joystick1Button7Button 7 on first joystick //第一个手柄按键7。
  • Joystick1Button8Button 8 on first joystick //第一个手柄按键8。
  • Joystick1Button9Button 9 on first joystick //第一个手柄按键9。
  • Joystick1Button10Button 10 on first joystick //第一个手柄按键10。
  • Joystick1Button11Button 11 on first joystick //第一个手柄按键11。
  • Joystick1Button12Button 12 on first joystick //第一个手柄按键12。

  • Joystick1Button13Button 13 on first joystick //第一个手柄按键13。
  • Joystick1Button14Button 14 on first joystick //第一个手柄按键14。
  • Joystick1Button15Button 15 on first joystick //第一个手柄按键15。
  • Joystick1Button16Button 16 on first joystick //第一个手柄按键16。
  • Joystick1Button17Button 17 on first joystick //第一个手柄按键17。
  • Joystick1Button18Button 18 on first joystick //第一个手柄按键18。

  • Joystick1Button19Button 19 on first joystick //第一个手柄按键19。

  • Joystick2Button0Button 0 on second joystick //第二个手柄按键0。

  • Joystick2Button1Button 1 on second joystick //第二个手柄按键1。

  • Joystick2Button2Button 2 on second joystick //第二个手柄按键2。
  • Joystick2Button3Button 3 on second joystick //第二个手柄按键3。
  • Joystick2Button4Button 4 on second joystick //第二个手柄按键4。

  • Joystick2Button5Button 5 on second joystick //第二个手柄按键5。
  • Joystick2Button6Button 6 on second joystick //第二个手柄按键6。
  • Joystick2Button7Button 7 on second joystick //第二个手柄按键7。
  • Joystick2Button8Button 8 on second joystick //第二个手柄按键8。
  • Joystick2Button9Button 9 on second joystick //第二个手柄按键9。

  • Joystick2Button10Button 10 on second joystick //第二个手柄按键10。

  • Joystick2Button11Button 11 on second joystick //第二个手柄按键11。
  • Joystick2Button12Button 12 on second joystick //第二个手柄按键12。

  • Joystick2Button13Button 13 on second joystick //第二个手柄按键13。

  • Joystick2Button14Button 14 on second joystick //第二个手柄按键14。
  • Joystick2Button15Button 15 on second joystick //第二个手柄按键15。

  • Joystick2Button16Button 16 on second joystick //第二个手柄按键16。
  • Joystick2Button17Button 17 on second joystick //第二个手柄按键17。
  • Joystick2Button18Button 18 on second joystick //第二个手柄按键18。
  • Joystick2Button19Button 19 on second joystick //第二个手柄按键19。

  • Joystick3Button0Button 0 on third joystick //第三个手柄按键0。

  • Joystick3Button1Button 1 on third joystick //第三个手柄按键1。
  • Joystick3Button2Button 2 on third joystick //第三个手柄按键2。
  • Joystick3Button3Button 3 on third joystick //第三个手柄按键3。

  • Joystick3Button4Button 4 on third joystick //第三个手柄按键4。

  • Joystick3Button5Button 5 on third joystick //第三个手柄按键5。

  • Joystick3Button6Button 6 on third joystick //第三个手柄按键6。

  • Joystick3Button7Button 7 on third joystick //第三个手柄按键7。
  • Joystick3Button8Button 8 on third joystick //第三个手柄按键8。

  • Joystick3Button9Button 9 on third joystick //第三个手柄按键9。
  • Joystick3Button10Button 10 on third joystick //第三个手柄按键10。
  • Joystick3Button11Button 11 on third joystick //第三个手柄按键11。

  • Joystick3Button12Button 12 on third joystick //第三个手柄按键12。
  • Joystick3Button13Button 13 on third joystick //第三个手柄按键13。

  • Joystick3Button14Button 14 on third joystick //第三个手柄按键14。

  • Joystick3Button15Button 15 on third joystick //第三个手柄按键15。
  • Joystick3Button16Button 16 on third joystick //第三个手柄按键16。

  • Joystick3Button17Button 17 on third joystick //第三个手柄按键17。
  • Joystick3Button18Button 18 on third joystick //第三个手柄按键18。

  • Joystick3Button19Button 19 on third joystick //第三个手柄按键19。
相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,088
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,564
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,412
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,185
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,822
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,905