Wednesday, August 6, 2008

Handling Keyboard Shortcuts in JavaScript

I found this script very useful. Especially when I need to handle key combination (disable default events for "Crtl+P" and "Ctrl+S" for example)

The code work nicely but the source code is not in a good form. So I refactored it:

Check out it and feel free to make it better :)

No comments: