Skip to content

koding/shortcuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shortcuts

manages keyboard shortcuts in browser.

# usage

var shortcuts = new Shortcuts({
  foo: [
    { name: 'bar', binding: [ ['ctrl+x'], ['command+x'] ]}
  ]
});
shorcuts.on('key:foo', function () { })

See keyconfig for spec.

api

# ctor(defaults={})

Returns an events.EventEmitter.

.get(collectionName, modelName)

.update(collectionName, modelName, value, silent)

.getCollisions(collectionName)

events

key:collectionName

change

todo

  • do not use mousetrap

license

mit

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6