Javascript Char codes (Key codes) Summary __java

Source: Internet
Author: User

We know that each key on the keyboard corresponds to a code, tapping the keyboard, in fact, the computer hardware through the logic gate circuit to generate binary digits to represent this code, and then passed to the CPU.

The following is a summary of the char codes supported by javascript:


Key Code
Backspace 8
tab 9
Enter 13
Shift 16
Ctrl 17
Alt 18
Pause/break 19
Caps LOCK 20
Escape 27
Page UP 33
Page Down 34
End 35
Home 36
Left Arrow 37
Up ARROW 38
Right Arrow 39
Down ARROW 40
Insert 45
Delete 46
0 48
1 49
2 50
3 51
4 52
5 53
6 54
7 55
8 56
9 57
A 65
B 66
C 67
D 68
Key

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.