KeyEvent Key Code value

Source: Internet
Author: User

The A to Z key is the same as the ASCII code for the A–z letter:
Value Description
A Key
The B key
The C key
The D key
E Key
+ F Key
G Key
The H key
I Key
The J key
K Key
L Key
+ M Key
The N key
The O key
P Key
Bayi Q Key
+/-R key
The S key
T Key
U-Key
The V-key
The W key
X Key
Y Key
Z Key

The 0 to 9 keys are the same as the ASCII code of the digital 0–9:
Value Description
48 0 Keys
49 1 Keys
50 2 Keys
51 3 Keys
52 4 Keys
53 5 Keys
54 6 Keys
55 7 Keys
56 8 Keys
57 9 Keys

The following constants represent keys on the numeric keypad:
value description
0x60 0 Key //96
0x61 1 Key
0X62 2 Key
0X63 3 Key
0x64 4 Key
0X65 5 Key
0X66 6 Key
0X67 7 Key
0X68 8 Key
0x69 9 Key
0x6A (106) Multiplication sign (*) key
0X6B (107) PLUS sign (+) key
0X6C (108) Enter key
0X6D (109) minus sign (–) key
0x6e () DECIMAL point (.) key
0x6F (111) Division sign (/) key

The following constants represent function keys:
Value Description

0x70 F1 Key
0x71 F2 Key
0x72 F3 Key
0x73 F4 Key
0x74 F5 Key
0x75 F6 Key
0x76 F7 Key
0x77 F8 Key
0x78 F9 Key
0x79 F10 Key
0x7A F11 Key
0x7B F12 Key
0x7C F13 Key
0x7d F14 Key
0x7E F15 Key
0x7F F16 Key


Other

Value Description

0x1 left mouse button
0x2 right mouse button
0x3 CANCEL Key
0x4 Middle mouse button
0x8 BACKSPACE Key
0x9 TAB Key
0xC CLEAR Key
0xD ENTER Key
0x10 SHIFT Key
0x11 CTRL Key
0x12 MENU Key
0x13 PAUSE Key
0x14 CAPS LOCK Key
0x1B ESC Key
0x20 SPACEBAR Key
0x21 PAGE up key
0x22 PAGE down key
0x23 END Key
0x24 HOME Key
0x25 left ARROW Key
0x26 Up ARROW key
0x27 RIGHT ARROW key
0x28 DOWN ARROW key
0x29 SELECT Key
0x2A PRINT Screen Key
0x2B EXECUTE Key
0x2C SNAPSHOT Key
0x2D INSERT Key
0x2e DELETE Key
0x2F Help Key
0x90 Num LOCK Key
Ten enter key


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

KeyEvent Key Code 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.