-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-rustdoc-jsArea: Rustdoc's JS front-endArea: Rustdoc's JS front-endC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
Steps to reproduce:
- Visit a rustdoc page, e.g. https://doc.rust-lang.org/nightly/std/
- Hit 'S' to focus search.
- Type a search, e.g. "String"
- Press the down arrow once to highlight a search result.
- Hold down Ctrl (incidentally, notice that the highlighting goes away).
- Hit enter.
Expected result:
First search result is opened in a new tab.
Actual result:
Nothing happens.
In general, Ctrl-Enter works when an <a>
is focused. The search results are <a>
s. I think mainly we need two things:
- Make modifier keys (shift, ctrl, etc) not remove the highlighting of search results.
- Make sure highlighting search results with the arrow keys also focuses them.
Reproduces in latest Chrome and Firefox on Linux.
hellow554
Metadata
Metadata
Assignees
Labels
A-rustdoc-jsArea: Rustdoc's JS front-endArea: Rustdoc's JS front-endC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.