1.1.0 • Published 6 months ago

@anthonyjeamme/use-shortcut v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

A simple utils for binding keyboard keys to event handlers

Installation

npm i @anthonyjeamme/use-shortcut

Usage :

useShortcut("Escape", () => {
  console.log("Escape pressed");
});
1.1.0

6 months ago

1.0.0

6 months ago