I have a JavaScript application that receives keydown and keypress events from the user. The application works great in IE, Firefox, Safari and Chrome, yet it acts weird under Opera.

While in other browsers, if the user holds down a key, both events continue to fire... But in Opera the events fire only once while the key is still pressed.

Is there a reason to Opera's behaviour? How can I adapt myself to solve this issue?

Thank you.