[Tut] Hotkeys in JQuery
3 posts
Page 1 of 1
Before we get started. Make sure you have JQuery downloaded, and then download JQuery Hotkeys.
Now add in the following files like so...
For example look at my code below.
I told you it was easy cooll;.
Now add in the following files like so...
Code: Select all
Now it's super easy to make a hotkey.<html>
<head>
<title>JQuery Hotkeys</title>
<script src="jquery-1.6.1.js"></script>
<script src="jquery.hotkeys.js"></script>
</head>
<body>
</body>
</html>
For example look at my code below.
Code: Select all
What this code does is, when you press CTRL+Q an alertbox will popup saying "You found the hotkey!".$(document).bind('keydown', 'ctrl+q', function() {
alert('You found the hotkey!');
});
I told you it was easy cooll;.
You do not have the required permissions to view the files attached to this post.
3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023