disable Opera function key in javascript

Posted by DonDon on Stack Overflow See other posts from Stack Overflow or by DonDon
Published on 2010-06-16T03:48:29Z Indexed on 2010/06/16 3:52 UTC
Read the original article Hit count: 167

I'm writing javascript code for a web emulator containing function keys. The user is able to press keyboard function keys to process something in the emulator, I used stopPropagation and preventDefault javascript function to stop/cancel browsers invoking their function key shortcut (e.g. F1 will invoke Firefox to open its help page) and the code works fine under Firefox and Chrome. But Opera didn't work. I'm using latest Opera 10.5 here. Can anyone help ?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about keyboard-shortcuts