Event Key Codes
Javascript events are used to capture user keystrokes. Just type a character into the
Textbox below to Check the key code.
KeyPress | Javascript Key Code |
Below is a table of key codes for the keys on a multimedia keyboard.
Key Pressed | Javascript Key Code | Key Pressed | Javascript Key Code |
backspace | 8 | x | 88 |
tab | 9 | y | 89 |
enter | 13 | z | 90 |
shift | 16 | left window key | 91 |
ctrl | 17 | right window key | 92 |
alt | 18 | select key | 93 |
pause/break | 19 | numpad 0 | 96 |
caps lock | 20 | numpad 1 | 97 |
escape | 27 | numpad 2 | 98 |
page up | 33 | numpad 3 | 99 |
page down | 34 | numpad 4 | 100 |
end | 35 | numpad 5 | 101 |
home | 36 | numpad 6 | 102 |
left arrow | 37 | numpad 7 | 103 |
up arrow | 38 | numpad 8 | 104 |
right arrow | 39 | numpad 9 | 105 |
down arrow | 40 | multiply | 106 |
insert | 45 | add | 107 |
delete | 46 | subtract | 109 |
0 | 48 | decimal point | 110 |
1 | 49 | divide | 111 |
2 | 50 | f1 | 112 |
3 | 51 | f2 | 113 |
4 | 52 | f3 | 114 |
5 | 53 | f4 | 115 |
6 | 54 | f5 | 116 |
7 | 55 | f6 | 117 |
8 | 56 | f7 | 118 |
9 | 57 | f8 | 119 |
a | 65 | f9 | 120 |
b | 66 | f10 | 121 |
c | 67 | f11 | 122 |
d | 68 | f12 | 123 |
e | 69 | num lock | 144 |
f | 70 | scroll lock | 145 |
g | 71 | semi-colon | 186 |
h | 72 | equal sign | 187 |
i | 73 | comma | 188 |
j | 74 | dash | 189 |
k | 75 | period | 190 |
l | 76 | forward slash | 191 |
m | 77 | grave accent | 192 |
n | 78 | open bracket | 219 |
o | 79 | back slash | 220 |
p | 80 | close braket | 221 |
q | 81 | single quote | 222 |
r | 82 | ||
s | 83 | ||
t | 84 | ||
u | 85 | ||
v | 86 | ||
w | 87 |
0 comments:
Post a Comment