Monday, February 1, 2010

Flex/Flash Keyboard Key Codes

Flex/Flash Keyboard Key Codes: "
If you need to know the key codes when implementing a keyboard event use the following application that displays some info about the pressed key. First you need to click on the application to have focus on it then you can start trying out different key strokes.

Some key codes, ASCII codes tables are present bellow…


Letter or number key

Key code

ASCII key code
A6565
B6666
C6767
D6868
E6969
F7070
G7171
H7272
I7373
J7474
K7575
L7676
M7777
N7878
O7979
P8080
Q8181
R8282
S8383
T8484
U8585
V8686
W8787
X8888
Y8989
Z9090
04848
14949
25050
35151
45252
55353
65454
75555
85656
95757
a6597
b6698
c6799
d68100
e69101
f70102
g71103
h72104
i73105
j74106
k75107
l76108
m77109
n78110
o79111
p80112
q81113
r82114
s83115
t84116
u85117
v86118
w87119
x88120
y89121
z90122



Numeric keypad key

Key code

ASCII key code
Numpad 09648
Numpad 19749
Numpad 29850
Numpad 39951
Numpad 410052
Numpad 510153
Numpad 610254
Numpad 710355
Numpad 810456
Numpad 910557
Multiply10642
Add10743
Enter1313
Subtract10945
Decimal11046
Divide11147



Function key

Key code

ASCII key code
F11120
F21130
F31140
F41150
F51160
F61170
F71180
F81190
F91200
F10This key is reserved by the system and cannot be used in ActionScript.This key is reserved by the system and cannot be used in ActionScript.
F111220
F121230
F131240
F141250
F151260



Key

Key code

ASCII key code
Backspace88
Tab99
Enter1313
Shift160
Control170
Caps Lock200
Esc2727
Spacebar3232
Page Up330
Page Down340
End350
Home360
Left Arrow370
Up Arrow380
Right Arrow390
Down Arrow400
Insert450
Delete46127
Num Lock1440
ScrLk1450
Pause/Break190

Some stuff about keyboard events bellow:

http://livedocs.adobe.com/flex/3/html/help.html?content=events_11.html

http://cookbooks.adobe.com/post_Global_keyboard_event_handling-304.html

http://livedocs.adobe.com/flex/3/html/help.html?content=Capturing_User_Input_3.html

No comments:

Post a Comment

Your comments is appreciate.