mousetrap-pause
v1.0.0
Published
Adds methods to pause and to unpause all combos or specific combos to Mousetrap
Downloads
3,809
Readme
mousetrap-pause
Mousetrap plugin to pause and unpause all or specific combos
Installation
npm install mousetrap-pause --save
Usage
Use browserify to use Mousetrap with pausing functionality:
var mousetrap = require('mousetrap-pause')(require('mousetrap'));
API
This plugin extends Mousetrap to pause:
mousetrap.pause();
and to unpause
mousetrap.unpause();
If you want to pause or unpause only single combos, e.g. mod-a:
mousetrap.pauseCombo('mod-a');
/* ... */
mousetrap.unpauseCombo('mod-a');