2

I want make alert, that will be run after user presses Alt+F+U.

How to make it with jquery?

Ilya Medvedev
  • 1,281
  • 3
  • 12
  • 22

3 Answers3

3

It is a nice jquery plugin for binding hotkey combinations:

$(document).bind('keydown', 'alt+f+u', fn);

GitHub

Alex Pliutau
  • 21,392
  • 27
  • 113
  • 143
1

You can use the jquery js-hotkeys plugin. Example of usage :

$(document).bind('keydown', 'ctrl+c', fn);
Haythem Tlili
  • 566
  • 3
  • 10
-3

try the below

shortcut.add("Alt+F+U",function() { alert("Pressed!"); });

SShebly
  • 2,043
  • 1
  • 21
  • 29