QUESTION: how to get at the star above the numbers
My FIDDLE currently does not detect the * above the number row on the keyboard – only the * on the numeric keypad…
On my keyboard it is shift-3 so keyCode 51 + shift. How do I just test for * regardless of what I clicked to get it?
The
keydownandkeyupevents are unreliable for detecting specific characters, because theevent.whichproperty of these events are not char codes.The
keypressevent has to be used. This event may fire multiple times whilst a key is pressed down. So, set a flag when the desired key is pressed, and remove the flag onkeyup.Demo: http://jsfiddle.net/xHnTD/