IMPORTANT BREAKING CHANGE!
The call signature has changed! Prior to v2 it was
useHotkeys(keys: string, callback: (event: KeyboardEvent, handler: HotkeysEvent) => void, deps: any[] = [], options: Options = {})
With v2 deps
and options
changed position:
useHotkeys(keys: string, callback: (event: KeyboardEvent, handler: HotkeysEvent) => void, options: Options = {}, deps: any[] = [])
Release Commits
- Added more options Swapped deps and options param. Updated docz. 5881da1
- Merge pull request #251 from JohannesKlauss/renovate/docz-2.x 66914ef
- Update dependency docz to v2.3.0 eafd452
- Merge pull request #249 from JohannesKlauss/renovate/react-16.x f8ae1d4
- Update dependency @types/react to v16.9.32 8585adc
- Merge pull request #250 from JohannesKlauss/renovate/react-dom-16.x 18958d4
- Update dependency @types/react-dom to v16.9.6 296ca08
- Merge pull request #248 from JohannesKlauss/renovate/react-16.x fc6f662
- Update dependency @types/react to v16.9.30 f6adb20
- Merge pull request #247 from JohannesKlauss/renovate/react-16.x e2194db
- Update dependency @types/react to v16.9.29 4559d0b
- Merge pull request #246 from JohannesKlauss/renovate/react-16.x d110a30
- Update dependency @types/react to v16.9.27 af3e1c9