react-haiku icon indicating copy to clipboard operation
react-haiku copied to clipboard

[FEAT] Create Hook - useKeyPress()

Open DavidHDev opened this issue 6 months ago • 0 comments

Description A hook that detects when a specific key or combination of keys is pressed.

Acceptance Criteria

  • [ ] Single Key Detection: Triggers a callback when a specified key is pressed.
  • [ ] Combination Key Detection: Supports detecting combinations of keys (e.g., Ctrl + C).
  • [ ] Event Cleanup: Ensures event listeners are removed when the component is unmounted.

DavidHDev avatar Aug 02 '24 10:08 DavidHDev