Keymaster
A simple micro-library for identifying and dispatching keyboard shortcuts. It has no dependencies.
key('a', function(){ alert('you pressed a!') });
key('ctrl+r', function(){ alert('stopped reload!'); return false });
key('⌘+r, ctrl+r', function(){ });
source
share