/typed-keys

Handle keyboard inputs with type hints!

Primary LanguageTypeScriptMIT LicenseMIT

typed-keys

Handle keyboard input with type hints!

Example

import { matchKeys } from "typed-keys";

// returns true if the keyboard input event is the key R
matchKeys(e, "R");
// check for multiple key combinations
matchKeys(e, ["Ctrl+P", "Shift+Alt+K"]);

Install

Node.js

npm install typed-keys

or

yarn add typed-keys

CDN

<script src="https://cdn.jsdelivr.net/gh/MarkintoshZ/Scribbled@latest/dist/scribbled.min.js">

Have fun coding!