![Hot Keys Made Simple](/_next/image?url=https%3A%2F%2Fimages.prismic.io%2Fhimynameistim%2F592a033a-544a-41cf-88e5-d4dfcb40b80e_4415196162_620b2615e9.jpg%3Fauto%3Dcompress%2Cformat%26fit%3Dcrop%26max-w%3D1093%26max-h%3D400&w=3840&q=75)
Hot Keys Made Simple
Previously I have blogged about how you can create keyboard shortcuts using JavaScript. In other words being able to add functionality to your web app for someone to do a ctrl+s. My previous example wasn't particularly hard and only used 10 lines of code, but this week I stumbled across a jQuery plugin that makes it easier.
http://code.google.com/p/js-hotkeys/
With this plugin, in just 1 line of code you can bind a function to a keyboard shortcut. What's more you don't even need to look up the correct keycodes as it takes a simple text parameters.
1$(document).bind('keydown', 'ctrl+c', fn);
Combine this with a function that just triggers a button click and you have some very cool advanced looking functionality written in around 5 - 10 minuets.