Skip to content

Releases: arthurtyukayev/use-keyboard-shortcut

v1.1.6

08 Sep 16:10
Compare
Choose a tag to compare

Breaking Change

  • Previously type: "module" was added to the package.json which caused issues with imports that aren't fully specificed, it is removed in this build.

What's Changed

Full Changelog: v1.1.4...v1.1.6``

v1.1.5

07 Sep 01:07
Compare
Choose a tag to compare

Improvements

  • Fixed bug that caused keyboard shortcut hook to swallow keys in input fields #67
  • Added missing declarations for flushHeldKeys function.

What's Changed

Full Changelog: v1.1.3...v1.1.4

v1.1.4

18 Feb 23:58
Compare
Choose a tag to compare

Improvements

  • Added flushHeldKeys utility function for hook, allowing you to clear "stuck" keys.
  • Fixes uses causing issues with multiple shortcuts on the same page and misfires due to length-based comparison.

What's Changed

Full Changelog: v1.1.3...v1.1.4

v1.1.3

17 Feb 01:38
Compare
Choose a tag to compare

Improvements

  • Updated types for user options to be optional
  • Added new option to allow for callback to fire on repeat if keys held down
  • Updated peerDependencies to include React 17.

What's Changed

New Contributors

  • @slobo made their first contribution in #50

Full Changelog: v1.1.2...v1.1.3

v1.1.2

27 Dec 20:23
Compare
Choose a tag to compare

Improvements

  • Added .npmignore, which should remove some files from the package published to npm.

What's Changed

Full Changelog: v1.1.1...v1.1.2

v1.1.1

27 Dec 18:59
6258bec
Compare
Choose a tag to compare

Improvements

  • Added Typescript declaration files to the project.

What's Changed

Full Changelog: v1.1...v1.1.1

v1.1

14 Dec 02:16
46df922
Compare
Choose a tag to compare

General Changes

  • Updates the way useKeyboardShortcut watches held keys, now requires keys to be held in a specific order.
  • Added additional options for enabling and disabling input ignores
  • Adds integration testing for the new checkHeldKeysRecursive function.

Improvements

  • Significantly reduces the amount of event listeners created to track keydown and keyup events.

Breaking Changes

  • Keys are now required to be held in a specific order, while before you can trigger the shortcut ["Shift", "K"] by either pressing and holding Shift + K or K + Shift, this will no longer work. This was unintended functionality. It has been fixed in this release.

What's Changed

Full Changelog: https://github.com/arthurtyukayev/use-keyboard-shortcut/commits/1.1