1.1.0 • Published 2 years ago
typed-keys v1.1.0
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">