1.1.0 • Published 2 years ago

@anthonyjeamme/use-shortcut v1.1.0

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

2 years ago

1.0.0

2 years ago