2.0.3
https://jsfiddle.net/crswll/5yynzyj3/
Focus the input and try using W, A, S or D to trigger key up instead of UP, RIGHT, DOWN and LEFT.
I expected to be able to hit W or UP to trigger up2, A or LEFT to trigger left2, S or DOWN to trigger down2, D or RIGHT to trigger right2.
Nothing. I thought it would work because of this line from the source but it doesn't...
Also, kind of a side note:
Can we overwrite the default keyCodes? I'd rather name my custom alias up instead of up2.
The current public API doesn't support Array yet, but this could be useful.
I agree! I'm doing an app for a set top box and the remote's keyCodes don't always line up with my computer.
Closed via #4328
Most helpful comment
The current public API doesn't support Array yet, but this could be useful.