6 Commits

Author SHA1 Message Date
streamich
c0658f605f feat: 🎸 refactor useKeyPressEvent hook
Changes its interface, fixes bug of calling callback on initial mount,
useKeyPress hook is injected as dependency and can be overwirtten to
useKeyboardJs.

BREAKING CHANGE: 🧨 useKeyPressEvent hook modified for dependency injection and providing
event objects to user
2019-03-28 19:28:19 +01:00
streamich
61700675cd chore: 🤖 don't install only large dependencies
This change removes useCallbag hook, it also reverts back changes for
hooks that only have tiny dependencies or dependencies that could have
been part of the hook itself. Effectivly only KeyboardJS and Rebound are
large packages that only partially are used by react-use, hence require
user to install them separately.

BREAKING CHANGE: 🧨 useCallbag hook is removed, some hooks KeyboardJS and Rebound installed
separately
2019-03-25 13:19:37 +01:00
Charles Crete
7be31a4a1d Remove dependencies 2019-03-23 15:28:45 -04:00
Va Da
2390cafb6d
docs: fix useKeyPress link 2019-03-19 23:41:44 +01:00
streamich
7cf90107e1 chore: 🤖 various improvements for useKeyPrssEvent()
add link to README, expose in index.ts, improve docs/demo, add Storybook
story
2019-03-19 22:47:12 +01:00
Parker McMullin
c3d49e230b Added useKeyPressEvent custom hook with associated doc. This focuses on utilizing the onKeyup and/or onKeydown events unlike useKeyPress which involves state. useKeyPressEvent uses useKeyPress to achieve this functionality. 2019-03-09 19:25:59 -07:00