Reputation: 1279
I want make alert, that will be run after user presses Alt+F+U
.
How to make it with jquery?
Upvotes: 2
Views: 761
Reputation: 566
You can use the jquery js-hotkeys plugin. Example of usage :
$(document).bind('keydown', 'ctrl+c', fn);
Upvotes: 1
Reputation: 2073
try the below
shortcut.add("Alt+F+U",function() { alert("Pressed!"); });
Upvotes: -3
Reputation: 21957
It is a nice jquery plugin for binding hotkey combinations:
$(document).bind('keydown', 'alt+f+u', fn);
Upvotes: 3