Skip to content

[BUG] Dedicated hotkey with useKey=true and only difference is shift no longer working #1316

@ivy-lli

Description

@ivy-lli

Describe the bug
If you have 2 dedicated hotkeys and the only difference is the shift modifier with the useKey option on true, it will trigger both hotkeys with or without shift pressed.
This has worked with v5.2.3, but no longer after update to v5.2.4.

To Reproduce
Create two hotkeys with the same key one with shift one without.
Add useKey option

Please try and add a codesandbox or stackblitz to reproduce the bug:
https://stackblitz.com/edit/vitejs-vite-pkmxrn6f?file=src%2FApp.tsx

Expected behavior
The pressed hotkey only increases the corresponding counter.

Screenshots
Image

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Firefox, Safari, Chrome
  • Version: 5.2.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions