Releases: arthurtyukayev/use-keyboard-shortcut
Releases · arthurtyukayev/use-keyboard-shortcut
v1.1.6
Breaking Change
- Previously
type: "module"
was added to thepackage.json
which caused issues with imports that aren't fully specificed, it is removed in this build.
What's Changed
- Release v1.1.5 by @arthurtyukayev in #73
Full Changelog: v1.1.4...v1.1.6``
v1.1.5
Improvements
- Fixed bug that caused keyboard shortcut hook to swallow keys in input fields #67
- Added missing declarations for
flushHeldKeys
function.
What's Changed
- Release 1.1.4 by @arthurtyukayev in #62
Full Changelog: v1.1.3...v1.1.4
v1.1.4
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
- Release 1.1.4 by @arthurtyukayev in #62
Full Changelog: v1.1.3...v1.1.4
v1.1.3
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
- Update Types by @slobo in #50
- Bump follow-redirects from 1.14.6 to 1.14.8 by @dependabot in #55
- Updates peerDependencies to include react v17 by @arthurtyukayev in #56
- Updated held down keys array updates and added repeat more by @arthurtyukayev in #57
New Contributors
Full Changelog: v1.1.2...v1.1.3
v1.1.2
Improvements
- Added
.npmignore
, which should remove some files from the package published to npm.
What's Changed
- Updated naming and added a badge to README.md (#45) by @arthurtyukayev in #46
- Created .npmignore by @arthurtyukayev in #47
- Bumped package version 1.1.2 by @arthurtyukayev in #48
Full Changelog: v1.1.1...v1.1.2
v1.1.1
Improvements
- Added Typescript declaration files to the project.
What's Changed
- Typescript declarations by @arthurtyukayev in #41
Full Changelog: v1.1...v1.1.1
v1.1
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
andkeyup
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 holdingShift
+K
orK
+Shift
, this will no longer work. This was unintended functionality. It has been fixed in this release.
What's Changed
- Added README to project by @arthurtyukayev in #2
- Updated readme by @arthurtyukayev in #3
- Updated keys array to lowercase all keys by @arthurtyukayev in #5
- Added options to hook to override browser defaults by @arthurtyukayev in #13
- Fixed issues causing keydown and keyup handlers to be inconsistently by @arthurtyukayev in #20
- Restores hook!? by @arthurtyukayev in #22
- Added repeat key return to keydown handler to fix flickering issues by @arthurtyukayev in #23
- Create LICENSE by @arthurtyukayev in #32
Full Changelog: https://github.com/arthurtyukayev/use-keyboard-shortcut/commits/1.1