1.0.1 • Published 7 years ago
nocms-shortcuts v1.0.1
NoCMS Shortcuts
Global shortcut handling for NoCMS.
Installation
npm install nocms-shortcuts --save
Usage
import shortcuts from 'nocms-shortcuts';
shortcuts.addHandler('alt-e', this.toggleSomething);
API
addHandler, (keys, function)
Add handler which triggers on keydown on document.body
removeHandler, (keys, function)
Remove the handler
1.0.1
7 years ago