What is the most reliable way to create a global keyboard shortcut handler for a web application using JavaScript, that is, which event (s) should handle and what should the event handler bind to?
I want something like a system in Gmail that can handle both individual shortcut keys and shortcuts with modifier keys, for example. Ctrl + B, etc. The code should work in IE 6, as well as in modern browsers.
I have a Prototype platform available for use, but not jQuery, so please do not respond to jQuery answers!
source
share