I have an item that can be dragged within a shape. I had been also able to move the item with the arrow keys on the keyboard, using:
$(document).bind('keypress', function(event) {
if(event.which === 63232){ // up arrow key
if(!event.shiftKey) howMuch = -1;
else if(event.shiftKey) howMuch = -10;
moveText(howMuch);
}
});
But, at least in FF, this doesn’t work anymore. I alerted out the event that is happening on an arrow press and all four return zero.
How can I detect an arrow key press? Oh yeah…javascript or jQuery.
Thank you for your time,
Todd
Isn’t it just: