cutagerjs
v1.2.1
Published
A shortcuts manager made for `Rhyme`
Downloads
27
Readme
:hear_no_evil: What is Cutager
?
Cutager is a shortcuts manager made for Rhyme
:package: Install
yarn add cutagerjs
or
npm install cutagerjs
:thinking: How to use
Add an action
import { KeyCombo, Action, CutagerJS } from "cutagerjs";
const cutager = new CutagerJS();
cutager.addAction(new Action("save", new KeyCombo("ctrl+s", "ctrl+shift+s"), save), false); // Note `save` is a pre declared function
Remove an action
cutager.removeAction("save");
Pause
cutager.pause();
Resume
cutager.resume();
Check if paused
cutager.isPaused();