5 Commits

Author SHA1 Message Date
Ankith Konda
f02b92d423 Add TSLint + Prettier and fix lint issues 2019-04-12 23:18:11 +10:00
streamich
60064a6e50 fix: 🐛 call key{up/donw} callbacks in useKeyPressEvent correct 2019-03-31 15:19:12 +02:00
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
5c95f28521 fix: 🐛 fix TypeScript build errors 2019-03-28 19:01:23 +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