Skip to content

mvayngrib/keycombo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keycombo

tiny key combination detection library

Usage

var keycombo = require('keycombo')(window);
var keycode = require('keycode');
var combo = [keycode('Command'), keycode('R')]; // == [91, 82]

keycombo.on(combo, function() {
  console.log('you hit Command+R');
});

About

tiny key combination detection library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published