shortcuts
keyboard shortcuts, similiar to component/events.
Installation
$ component install yields/shortcuts
Example
{ thisshortcuts = ; thisshortcuts; thisshortcuts;} Editableprototype{};Editableprototype{};
API
Shortcuts
Bind shortcuts on the given el
with obj
.
.k
k instance
#bind
Bind keys
with method
#unbind
Unbind all events, or keys
or keys
with method
.
shortcuts // => unbind `undo`, `command + z`shortcuts; // => unbind `command + z`shortcuts; // => unbind all
License
MIT