Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: duplicate hotkey activiation #1080

Merged
merged 3 commits into from
Oct 30, 2023
Merged

Fix: duplicate hotkey activiation #1080

merged 3 commits into from
Oct 30, 2023

Conversation

brendanlaschke
Copy link
Contributor

This should fix the duplicate activation on hotkeys...

closes #1013

@vercel
Copy link

vercel bot commented Oct 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-hotkeys-hook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2023 7:21am

@JohannesKlauss
Copy link
Owner

JohannesKlauss commented Oct 4, 2023

Thank you @brendanlaschke for your contribution. Could you please add tests for you behavioral change?

@brendanlaschke
Copy link
Contributor Author

Done!

@JohannesKlauss JohannesKlauss merged commit 559e298 into JohannesKlauss:main Oct 30, 2023
1 check passed
@kachkaev
Copy link
Contributor

kachkaev commented Dec 7, 2023

A follow-up: #1105

renovate bot referenced this pull request in simonknittel/sinister-incorporated Jan 11, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[react-hotkeys-hook](https://johannesklauss.github.io/react-hotkeys-hook/)
([source](https://github.com/JohannesKlauss/react-keymap-hook)) |
[`4.4.1` ->
`4.4.3`](https://renovatebot.com/diffs/npm/react-hotkeys-hook/4.4.1/4.4.3)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/react-hotkeys-hook/4.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/react-hotkeys-hook/4.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/react-hotkeys-hook/4.4.1/4.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/react-hotkeys-hook/4.4.1/4.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>JohannesKlauss/react-keymap-hook (react-hotkeys-hook)</summary>

###
[`v4.4.3`](https://github.com/JohannesKlauss/react-hotkeys-hook/releases/tag/v4.4.3)

[Compare
Source](https://github.com/JohannesKlauss/react-keymap-hook/compare/v4.4.2...v4.4.3)

##### What's Changed

- Call ignoreEventWhen callback only on hotkey matches by
[@&#8203;LuanScudeler](https://github.com/LuanScudeler) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1096](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1096)
- Fix CI (update triggers, format files) by
[@&#8203;kachkaev](https://github.com/kachkaev) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1105](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1105)
- fix: focus trap did not work for shadow root by
[@&#8203;artchen-db](https://github.com/artchen-db) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1108](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1108)
- chore(deps): update dependency typescript to v5.3.3 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1106](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1106)
- chore(deps): update dependency
[@&#8203;testing-library/user-event](https://github.com/testing-library/user-event)
to v14.5.2 by [@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1097](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1097)
- chore(deps): update dependency tslib to v2.6.2 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1102](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1102)
- chore(deps): update dependency
[@&#8203;testing-library/react](https://github.com/testing-library/react)
to v14.1.2 by [@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1094](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1094)
- chore(deps): update react monorepo by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1093](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1093)
- chore(deps): update dependency
[@&#8203;types/jest](https://github.com/types/jest) to v29.5.11 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1092](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1092)
- chore(deps): update babel monorepo by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1091](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1091)

##### New Contributors

- [@&#8203;artchen-db](https://github.com/artchen-db) made their first
contribution in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1108](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1108)

**Full Changelog**:
JohannesKlauss/react-hotkeys-hook@v4.4.2...v4.4.3

###
[`v4.4.2`](https://github.com/JohannesKlauss/react-hotkeys-hook/releases/tag/v4.4.2)

[Compare
Source](https://github.com/JohannesKlauss/react-keymap-hook/compare/v4.4.1...v4.4.2)

#### What's Changed

- Improve words in hook API docs by
[@&#8203;jrysana](https://github.com/jrysana) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1050](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1050)
- chore(deps): update jest monorepo by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1053](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1053)
- chore(deps): update react monorepo by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1054](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1054)
- Tiny fix: correct name of enableScope/disableScope in README and test
description. by [@&#8203;rewbs](https://github.com/rewbs) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1056](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1056)
- chore(deps): update dependency
[@&#8203;types/react](https://github.com/types/react) to v18.2.17 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1059](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1059)
- chore(deps): update jest monorepo to v29.6.2 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1060](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1060)
- Bump word-wrap from 1.2.3 to 1.2.4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1055](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1055)
- chore(deps): update dependency
[@&#8203;types/react](https://github.com/types/react) to v18.2.18 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1061](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1061)
- fix(deps): update dependency react-hotkeys-hook to v4.4.1 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1062](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1062)
- chore(deps): update dependency
[@&#8203;types/react](https://github.com/types/react) to v18.2.20 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1065](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1065)
- fix(deps): update docusaurus monorepo to v2.4.1 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1066](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1066)
- chore(deps): update dependency
[@&#8203;types/react](https://github.com/types/react) to v18.2.21 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1071](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1071)
- chore(deps): update jest monorepo by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1072](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1072)
- chore(deps): update babel monorepo by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1075](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1075)
- chore(deps): update dependency
[@&#8203;testing-library/jest-dom](https://github.com/testing-library/jest-dom)
to v5.17.0 by [@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1076](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1076)
- chore(deps): update jest monorepo by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1078](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1078)
- chore(deps): update react monorepo by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1079](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1079)
- chore(deps): update react monorepo by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1082](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1082)
- fix(deps): update docusaurus monorepo to v2.4.3 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1083](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1083)
- chore(deps): update react monorepo by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1084](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1084)
- chore(deps): update babel monorepo to v7.23.2 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1085](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1085)
- chore(deps): update dependency
[@&#8203;types/jest](https://github.com/types/jest) to v29.5.6 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1088](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1088)
- chore(deps): update react monorepo by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1089](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1089)
- Fix: duplicate hotkey activiation by
[@&#8203;brendanlaschke](https://github.com/brendanlaschke) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1080](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1080)
- Bump postcss from 8.4.14 to 8.4.31 in /documentation by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1081](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1081)
- Bump [@&#8203;babel/traverse](https://github.com/babel/traverse)
from 7.18.0 to 7.23.2 in /documentation by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1086](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1086)
- Fix repository link by
[@&#8203;kachkaev](https://github.com/kachkaev) in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1103](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1103)

#### New Contributors

- [@&#8203;jrysana](https://github.com/jrysana) made their first
contribution in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1050](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1050)
- [@&#8203;rewbs](https://github.com/rewbs) made their first
contribution in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1056](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1056)
- [@&#8203;brendanlaschke](https://github.com/brendanlaschke) made
their first contribution in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1080](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1080)
- [@&#8203;kachkaev](https://github.com/kachkaev) made their first
contribution in
[https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1103](https://github.com/JohannesKlauss/react-hotkeys-hook/pull/1103)

**Full Changelog**:
JohannesKlauss/react-hotkeys-hook@v4.4.1...v4.4.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/simonknittel/sinister-incorporated).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjEyNy4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCJ9-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Duplicate activation of hotkey if another key event arrives before keyup
3 participants