In Actionscript 3, I see that if I press the "8" key (from NumPad) I get the KEYCODE result of the Numpad key "8", but when I turn off "Num Lock" and press the Numpad key "8", the event I get is keyCode up arrow keys ...
How is the difference between the keys of the numeric keypad (with Num Lock disabled) and the original keys, such as arrows, End, Insert, Delete and so on?
I tried using the keyLocationevent property , the value of this property is 0 for arrows and 3 for the numeric keypad, but when Num Lock is disabled, the values for 4, 6, 2, and 8 in numpad are 0, so I can not distinguish between numbers with disabled numpad and keys with arrows.
In addition, the numLockproperty of the Keyboardclass does not work, because I can’t know if I press the up arrow or 8 iota Num Lock turned off (because they cause the same event, or I think that)
source
share