Skip to content

[BUG] Using mod can get triggered by both Super and ctrl key on linux and windows #1280

@hesamhoseinkhani

Description

@hesamhoseinkhani

Describe the bug
The reason for using mod is to cover both Command on macOS and Ctrl on other systems, but right now it also gets triggered by the Super (Windows) key, which I don’t think should happen.

To Reproduce
I have added a Codesandbox example here:
https://codesandbox.io/p/devbox/hardcore-zhukovsky-nvs3hp?workspaceId=ws_JvXTqy2yuPwkwyFMzTt1fo

So we intend to have a hotkey for mod+b which should only trigger Ctrl in other OSs and Super in mac, but as you can see it works with both Ctrl and Super key.

Expected behavior
It should only be triggered by Ctrl in OSs other than mac.

Desktop (please complete the following information):

  • OS: Ubuntu 24.04
  • Browser Google Chrome
  • Version 138.0.7204.49

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions