keypress event, arrow keys and webkit
I've just tried to use the keypress event for the first time. But it seems that arrow keys don't register as keypresses in webkit browsers. To see this is action visit:
And try the "Type something" demo. Opera/ Firefox fire events with the arrow keys but Safari/ Chrome don't. Is this expected behaviour or a bug?
The page does say:
But this seems to be indicating that the returned keycode may be inconsistent, rather than that the event simply won't fire...
Because of this distinction, when catching special keystrokes such as arrow keys,
.keyup() is a better choice.
(as an aside, the reason I'm trying keypress is because I want to capture recurring cancelable events while the arrow keys are held down)