Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 14, 2025

Bumps react-hotkeys-hook from 4.6.1 to 5.2.0.

Release notes

Sourced from react-hotkeys-hook's releases.

v5.2.0

JohannesKlauss/react-hotkeys-hook@v5.1.0...v5.2.0

What's Changed

New Contributors

Full Changelog: JohannesKlauss/react-hotkeys-hook@v5.1.0...v5.2.0

v5.1.0

What's Changed

New Contributors

Full Changelog: JohannesKlauss/react-hotkeys-hook@v5.0.2...v5.1.0

v5.0.0

🎉 Version 5!

Most users should not need to do any migration, but for those who use special characters (+,-/$? and so on) or a different delimiter key than + there is a bit of work to do.

🚨 Breaking Changes

<HotkeysProvider>

  • enabledScopes in the HotkeysProvider has been renamed to activeScopes
  • If all scopes are disabled in the HotkeysProvider no hotkeys will be active

useHotkeys

  • The hook now only listens to the code of the hotkey, not the produced key. This will get rid of all the confusion between different keyboard layouts, multiple accidental triggers and so on.
  • Special character mappings to the german keyboard layout code have been removed

... (truncated)

Changelog

Sourced from react-hotkeys-hook's changelog.

[5.2.0] - 13-Oct-2025

  • Introduced global scopes via HotkeysProvider and useHotkeysContext to group and control hotkeys across the app (enableScope/disableScope/toggleScope)
  • Added support for key sequences (e.g. "g>g") with configurable sequenceSplitKey (default ">") and sequenceTimeoutMs
  • New options: useKey, delimiter, splitKey, keyup/keydown toggles, description, document, ignoreModifiers, eventListenerOptions, enableOnContentEditable, ignoreEventWhen
  • Accessibility: enableOnFormTags can now accept ARIA roles and works with composedPath() in shadow DOM/custom elements
  • Improved key mapping (mod/meta/OS, code→key normalization) and standardized HotkeysEvent passed to callbacks
  • Internal: refactors and stability improvements around pressed-keys tracking and listener cleanup

[5.1.0] - 05-Sep-2025

  • Added BoundHotkeysProxyProvider for advanced scenarios and performance
  • Added helpers and warnings for missing provider when using scopes
  • Fixed various edge cases with modifier-only hotkeys and OS/meta key handling

[5.0.0] - 10-Jan-2025

  • Major refactor of the hook internals to support scopes and sequences
  • BREAKING: Package is ESM-only; ensure your toolchain supports ES modules
  • BREAKING: The callback now receives (keyboardEvent, hotkeysEvent) consistently; update your typings if you relied on the previous shape

[4.6.0] - 01-Nov-2024

  • Added 'hotkey' field, which shows which combination triggered the handler

[2.2.1] - 23-Jul-2020

  • Remove deprecated findDOMNode
  • Added useIsHotkeyPressed hook.

[2.2.0] - 23-Jul-2020

  • Return ref to scope hotkey
  • Fixed test for scopable ref feature

[2.1.4] - 30-Jun-2020

  • added updated readme to docz
  • Update README to reflect lack of filter scoping

[2.1.3] - 16-Apr-2020

  • Code cleanup
  • Overloaded function type, so that options does not have to be set when deps is used only.

[2.1.2] - 13-Apr-2020

  • Added tests

[2.1.1] - 05-Apr-2020

  • Fixed bug in 2.1.0 that every filter returns false that has no available tags given.

[2.1.0] - 04-Apr-2020

  • Added filter implementation

[2.0.1] - 04-Apr-2020

  • Update readme
  • Fixed Option Type

... (truncated)

Commits
  • 198a0bf 5.2.0
  • 88ca0f2 Merge remote-tracking branch 'origin/main'
  • 21bfcb4 update to biome v2
  • d9da6f5 Merge pull request #1293 from mickaelzhang/patch-1
  • e67ab32 clean up code base
  • 1c9122b update package-lock.json
  • bf1ead1 Merge pull request #1287 from ljani/fix-1286
  • 576122e Merge pull request #1282 from JohannesKlauss/renovate/actions-checkout-5.x
  • ddd63fd Merge pull request #1285 from JohannesKlauss/renovate/npm-vite-vulnerability
  • f76e50e Merge pull request #1290 from JohannesKlauss/renovate/actions-setup-node-5.x
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the Dependencies Pull requests that update a dependency file label Oct 14, 2025
Bumps [react-hotkeys-hook](https://github.com/JohannesKlauss/react-keymap-hook) from 4.6.1 to 5.2.0.
- [Release notes](https://github.com/JohannesKlauss/react-keymap-hook/releases)
- [Changelog](https://github.com/JohannesKlauss/react-hotkeys-hook/blob/main/CHANGELOG.md)
- [Commits](JohannesKlauss/react-hotkeys-hook@v4.6.1...v5.2.0)

---
updated-dependencies:
- dependency-name: react-hotkeys-hook
  dependency-version: 5.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/main/react-hotkeys-hook-5.2.0 branch from 8f56b19 to 06cb2e1 Compare October 14, 2025 12:42
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Oct 15, 2025

Superseded by #5512.

@dependabot dependabot bot closed this Oct 15, 2025
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/main/react-hotkeys-hook-5.2.0 branch October 15, 2025 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant