Skip to content

Releases: JohannesKlauss/react-hotkeys-hook

3.2.1

06 Mar 10:52
Compare
Choose a tag to compare

Added an enabled flag to conditionally execute the hook (@ggascoigne via 0edab0b)

3.1.0

13 Feb 09:31
Compare
Choose a tag to compare

Added filterPreventDefault option to allow or prevent default browser behavior when filter check fails. (@bernatmv via d216777)

3.0.1

28 Dec 16:09
d0bb363
Compare
Choose a tag to compare
  • Fixed bug where hotkeys callback gets triggered when focused on input field even it isn't supposed to (#438 )

3.0.0

23 Dec 15:13
Compare
Choose a tag to compare

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

23 Dec 14:16
Compare
Choose a tag to compare

Export Options type.

2.4.0

27 Oct 00:47
Compare
Choose a tag to compare

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

07 Sep 11:27
Compare
Choose a tag to compare

Removed node restriction in package.json

2.3.0

29 Aug 13:42
Compare
Choose a tag to compare

Use rollup instead of pika/pack to support IE11.

v2.2.2

29 Jul 12:09
Compare
Choose a tag to compare
  • 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...v2.2.2

v2.2.1

24 Jul 19:43
Compare
Choose a tag to compare

v2.2.0...v2.2.1