I recently had the need of using multiple hotkeys for a web application I'm building.
I tried jQuery hotkeys but I had to drop it for a number of reasons: First of all is the unbind problem (well documented on their bug-tracker), if you bind N different keys combination, the callback function for each hotkey is called N times, and that's really annoying and there are no easy workaround. Other than that, not all keys combination are supported, some keys just doesen't work, and it also bind keys per value instead of code: it's basically designed for american keyboards only, the same key value might have different key-codes for different keyboard layouts.
So I came up with a simple homemade solution that words flawlessly for my needs: http://jsfiddle.net/2Saj8/
I'm looking forward to try out keymaster.js though.
I tried jQuery hotkeys but I had to drop it for a number of reasons: First of all is the unbind problem (well documented on their bug-tracker), if you bind N different keys combination, the callback function for each hotkey is called N times, and that's really annoying and there are no easy workaround. Other than that, not all keys combination are supported, some keys just doesen't work, and it also bind keys per value instead of code: it's basically designed for american keyboards only, the same key value might have different key-codes for different keyboard layouts.
So I came up with a simple homemade solution that words flawlessly for my needs: http://jsfiddle.net/2Saj8/
I'm looking forward to try out keymaster.js though.