Skip to content

Support slash / keyboard shortcut to focus search #1998

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

Open
SUPERCILEX opened this issue Jan 13, 2023 · 3 comments
Open

Support slash / keyboard shortcut to focus search #1998

SUPERCILEX opened this issue Jan 13, 2023 · 3 comments

Comments

@SUPERCILEX
Copy link

/ is ubiquitous everywhere as the shortcut to focus search (every google product, github, etc).

@syphar
Copy link
Member

syphar commented Jan 13, 2023

Thank you for the idea!

This is a bigger question since S is the shortcut that is used inside rustdoc, and so also on the docs.rs homepage to focus the crate search.

IMO docs.rs would follow rustdoc here, so this is a question that should be raised there.

I found a partially related issue in rust-lang/rust#44964, though you could also create a new issue for it.

@SUPERCILEX
Copy link
Author

Oh, I thought this was the rustdoc repo too. Anyway, yeah the / shortcut should be everywhere rust presents a search bar.

@syphar
Copy link
Member

syphar commented Apr 3, 2024

It seems like rustdoc will add slash : rust-lang/rust#123355

Which means we could too, when the pr above is merged.

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

No branches or pull requests

2 participants