8000 BUG | `useMagicKeys` | Key isn't cleared when releasing "Cmd" · Issue #4795 · vueuse/vueuse · GitHub
[go: up one dir, main page]

Skip to content
BUG | useMagicKeys | Key isn't cleared when releasing "Cmd" #4795
@Corb3nik

Description

@Corb3nik

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.

Image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0