Posts Tagged ‘ KeyboardEvent

STFU KEY_DOWN!

It appears that in newer browsers the KeyboardEvent.KEY_DOWN is being perpetually dispatched when a key is being held down. Older browsers behavior would only execute once, when it was initially pressed. When I ran into this issue I couldn’t find any information about it, but is partly why Keith is eating crow ;) However in my simple implementation it was easy enough to removeEventListener on KEY_DOWN and addEventListener on KEY_UP. Now I am not sure who to blame here on this one, new browser standards or Adobe? I will avoid the blame Adobe first attitude here, as the player versions were the same just in different browser generations.

Holding down,
(-o|o-)