keymaster -快捷键管理器

https://github.com/madrobby/keymaster

 

// define short of 'a'

key('a', function(){ alert('you pressed a!') });



// returning false stops the event and prevents default browser events

key('ctrl+r', function(){ alert('stopped reload!'); return false });



// multiple shortcuts that do the same thing

key('⌘+r, ctrl+r', function(){ });

你可能感兴趣的:(master)