I have this extremely simple example: http://jsfiddle.net/arhVd/1/
<form> <input type="text"> <input type="submit"> </form> $(function () { $(document).keydown(function(e) { e.preventDefault(); $('form').submit(); }); });
I want to make sure that when F4 is pressed, it does not perform the built-in browser function (in the case of F4, focus on the URL bar or, possibly, F3 showing the Find panel.) The form submission functionality still works, I just donβt want the functions browser interfere.
This is for an internal application in which function keys must function, has HotKeys in the application.
jquery keyboard-events hotkeys
aherrick Nov 04 '10 at 18:26 2010-11-04 18:26
source share