Skip to content

Potentially swap arrow keys and tab in rustdoc keyboard shortcuts #65212

Closed
@Manishearth

Description

@Manishearth

Currently rustdoc's keyboard shortcuts use Tab to cycle between the tabs at the top of search results, and the arrow keys for moving through search results.

It's much more common for Tab and Shift + Tab to be used for navigating a list, and you can autosupport this by adding tabindexes, I think those autoskip display:none elements as well. It's pretty bad form to override Tab. Perhaps we should use tabIndex for this and use something else for switching the search result tabs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-searchArea: Rustdoc's search featureA-rustdoc-uiArea: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions