I am using jquery.hotkeys for implementing keyboard shortcuts.
My code:
$(document).bind('keydown', 'Ctrl+f', function () {
$('#myid').focus();
return false;
});
This works fine. But if any input is in focus, the keystroke defaults to the browser original (in this case find). If I click outside the input box, intended function is called by jquery.hotkeys.
What should I do if I want to get the uniform behaviour whether input is focused or not?