Releases: JohannesKlauss/react-hotkeys-hook
Releases · JohannesKlauss/react-hotkeys-hook
3.2.1
Added an enabled flag to conditionally execute the hook (@ggascoigne via 0edab0b)
3.1.0
3.0.1
3.0.0
This release contains a behavioral Breaking Change:
The filter
option is now locally scoped to the specific useHotkeys
call.
Prior to this release only one filter setting was possible which was used globally.
2.4.1
Export Options
type.
2.4.0
Breaking Change:
Setting the keyup
option to true
will no longer fire twice (one on keydown, one on keyup).
To ensure that the callback triggers on keydown and keyup, you have to set both options:
useHotkeys('enter', function(event, handler) {
console.log(handler);
}, {keyup: true, keydown: true});
2.3.1
Removed node restriction in package.json
2.3.0
Use rollup instead of pika/pack to support IE11.
v2.2.2
- Merge pull request #317 from wheeler/patch-1 fab3ce5
- fix(dependencies): move
np
to devDependency 6c0c4b9 - Merge pull request #315 from JohannesKlauss/renovate/testing-library__react-hooks-3.x b176c8c
- Update dependency @types/testing-library__react-hooks to v3.4.0 0bd43d7
- Fixed jest tests 9af7ffd
- Fixed readme and docz 024bc21
v2.2.1
- Fixed export. 83b4744
- Merge branch 'master' of https://github.com/JohannesKlauss/react-hotkeys-hook b4de396
- Added useIsHotkeyPressed. Removed finDOMNode. Updated docz. b496516
- Merge pull request #313 from JohannesKlauss/renovate/jest-26.x 6cd6ffe
- Update dependency @types/jest to v26.0.7 5c04bdf
- Merge pull request #312 from JohannesKlauss/renovate/pin-dependencies 97b034b
- Pin dependency np to 6.3.2 1fc474a
- added np locally to increase publish speed. cf78001