Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>JQuery Hotkeys</title>
- <script src="jquery-1.6.2.min.js"></script>
- <script src="jquery.hotkeys-0.7.9.js"></script>
- <script>
- $(document).bind('keydown', 'ctrl+1', function() {
- alert('You found the hotkey ctrl+1!');
- });
- $(document).bind('keydown', 'ctrl+2', function() {
- alert('You found the hotkey ctrl+2!');
- });
- </script>
- </head>
- <body>
- HOYKEY DEMO : Press 'Ctrl+1/Ctrl+2'
- </body>
- </html>
Add Comment
Please, Sign In to add comment