Skip to content

[API Bug] Conflicting keyboard shortcuts #274

Closed

Description

@mrmartineau

Raycast version: v1.25.0

Description

I am working on some improvements to the search-npm extension that I created. I'd like to assign this keyboard shortcut (⌘ + c) to one of the actions. Whilst I can assign the shortcut and it shows in the action UI (see below), using the keyboard shortcut does not actually work.
Are there any known issues using system-wide keyboard shortcuts within an extension action?

image

I am using this code within an Actions block:

<CopyToClipboardAction
  title="Copy Package Name"
  content={pkg.name}
  shortcut={{ modifiers: ['cmd'], key: 'c' }}
/>

Steps To Reproduce

  1. Add a CopyToClipboardAction to an existing extension with the ⌘ + c modifiers
  2. See check if the content is copied to the clipboard

The current behavior

No content should be copied to the clipboard when the keyboard shortcut is used.

The expected behavior

The content should be copied to the clipboard when the keyboard shortcut is used.

Activity

  1. added
    api
    bug
    on Nov 1, 2021
  2. PitNikola commented on Nov 1, 2021

    @PitNikola
    Member

    Thanks for bringing this up. This shortcut is occupied by regular "copy" action in the search field, so it's expected behavior that it doesn't work. We believe it can be confusing if extensions start overtaking common shortcuts like ⌘+C/V/Z. We might introduce some warning in the console when developer tries to assign it to an action to make it more clear.

  3. mrmartineau commented on Nov 1, 2021

    @mrmartineau
    ContributorAuthor

    Thanks @PitNikola, I thought as much.

    I also notice that my search npm extension has a keyboard shortcut that is the same as another I use in Raycast itself (cmd+opt+c) which opens the clipboard history. Do you think it would be possible for keyboard shortcuts (in extensions) to be disabled by users if they conflict like mine do?

  4. added a commit that references this issue on Jul 15, 2026
  5. added a commit that references this issue on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apibug

    Type

    No type

    Fields

    Priority

    None yet

    Severity

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions