keycombo

    1.0.0 • Public • Published

    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');
    });

    Install

    npm i keycombo

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.03 kB

    Total Files

    5

    Last publish

    Collaborators

    • spwilko
    • genevayngrib
    • pgmemk
    • tenaciousmv