-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
Describe the bug
When performing the following sequence:
- Hold Cmd
- Hold A
- Release A
The current
variable isn't updated properly.
I would expect to only see Cmd
. Instead, it still shows Cmd
+ A
In the screenshot below, I am only holding Cmd
. A
is not pressed anymore.

Reproduction
https://vueuse.org/core/useMagicKeys/
System Info
System:
OS: macOS 15.5
CPU: (11) arm64 Apple M3 Pro
Memory: 131.73 MB / 18.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 23.11.0 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.9.2 - /opt/homebrew/bin/npm
pnpm: 10.10.0 - /opt/homebrew/bin/pnpm
bun: 1.2.10 - /opt/homebrew/bin/bun
Browsers:
Chrome: 137.0.7151.68
Safari: 18.5
Used Package Manager
pnpm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.