1.1.0 • Published 3 years ago

@anthonyjeamme/use-shortcut v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years 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

3 years ago

1.0.0

3 years ago