8000 Search function should go to first result by pressing enter · Issue #1915 · squidfunk/mkdocs-material · GitHub
[go: up one dir, main page]

Skip to content

Search function should go to first result by pressing enter #1915

@matefriedl

Description

@matefriedl

I checked that...

  • ... the documentation does not mention anything about my idea
  • ... to my best knowledge, my idea wouldn't break something for other users
  • ... there are no open or closed issues that are related to my idea

Description

Currently the search features requires users to select a result with either the arrow key or the mouse. Then press enter to accept that result. I propose that when using search, the first result will be selected/highlighted by default. Pressing enter would take you this result right away. So to sum it up:

  1. Bring up search
  2. Type in your search terms
  3. Use the arrow keys to select the first result Have it selected automatically
  4. Hit enter to go to first result

Use Cases

Having to operate the arrow keys less often will reduce strain on the users right wrist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    change requestIssue requests a new feature or improvementresolvedIssue is resolved, yet unreleased if open

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0