Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Cmd/Ctrl + K" shortcut to focus search input in docs #4159

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

soulsam480
Copy link

This PR closes #4157

It adds the following shortcuts to focus the search input in generated docs

  • Cmd + K (MacOS)
  • Ctrl + K (windows and linux)
  • s
  • /

I've only tested in MacOS, and here's a screenshot. The placeholder changes to Search Ctrl + K on windows and linux.
image

P.S.
I think I also have to update some docs snapshots, please lmk if it has to be done

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Would you mind updating the changelog please 🙏

@soulsam480
Copy link
Author

Thank you! Would you mind updating the changelog please 🙏

Will get it done.

@soulsam480
Copy link
Author

Done! For some reason the checks are not running. Please let me know if I can fix it some way. Thanks.

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.

Focus search input in docs with Cmd/Ctrl + K shortcut
2 participants