1.2.1 • Published 4 years ago
cutagerjs v1.2.1
:hear_no_evil: What is Cutager ?
Cutager is a shortcuts manager made for Rhyme
:package: Install
yarn add cutagerjsor
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 functionRemove an action
cutager.removeAction("save");Pause
cutager.pause();Resume
cutager.resume();Check if paused
cutager.isPaused();