Skip to content

Scope the doc search shortcut to the active GraphiQL instance - #4785

Draft
trevor-scheer wants to merge 3 commits into
mainfrom
trevor/scope-doc-search-shortcut
Draft

trevor-scheer wants to merge 3 commits into
mainfrom
trevor/scope-doc-search-shortcut

Conversation

@trevor-scheer

Copy link
Copy Markdown
Contributor

With GraphiQL embedded in another app, pressing Cmd/Ctrl+K in a host control opens GraphiQL's doc explorer and cancels the host's shortcut. The first commit exercises the same keypress outside GraphiQL and on its Settings button.

Attach the capture listener to the GraphiQL container so it still runs before Monaco. Look for the search input in that container as well, so a second GraphiQL instance can open and focus its own docs.

Fixes #4768

@changeset-bot

changeset-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 27a5fa2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@graphiql/plugin-doc-explorer Patch
graphiql Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[doc-explorer] Cmd/Ctrl+K is captured window-wide and can't be changed or turned off

1 participant