mousetrap.js - gmail style keyboard shortcuts in 1.4kb »
I love keyboard shortcuts. In fact, I rarely use the mouse ever. I was looking at some options for handling keyboard shortcuts in Javascript. There are nice options out there, but they all have their shortcomings and none of them support key sequences like Gmail so I decided to make my own.
It’s really, really simple to use, has no external dependencies, and works in all browsers that I tested it in.