Skip to content

Search Keyboard Shortcut #2808

Closed
Closed

Description

@fishcharlie

🚀 Feature

Search Shortcut (ex. s key or / key) functionality for DocSearch search bar to automatically put the cursor in the search bar. This would be similar to how you can hit s or / to select the GitHub search bar.

Have you read the Contributing Guidelines on issues?

Yes

Motivation

Make it easier to access the website search.

Pitch

This feature would make it easier for users navigating the site to search the page by keeping their hands on the keyboard with a shortcut vs having to use the mouse to click on the search bar.

Activity

  1. added
    feature
    status: needs triage
    on May 24, 2020
  2. changed the title [-]Search Shortcut[/-] [+]Search Keyboard Shortcut[/+] on May 24, 2020
  3. krillboi commented on May 26, 2020

    @krillboi

    +1 for this! Though I have heard that DocSearch is releasing a new version soon that should be the one they are using on https://docsearch.algolia.com/ (where you hit Ctrl + K), so maybe Docusaurus just needs to implement this new theme when it releases?

  4. yangshun commented on Jun 5, 2020

    @yangshun
    Contributor

    Maybe we can add keyboard support as a core feature to Docusaurus 2.

    How it works - plugins can register keyboard shortcuts which Docusaurus will attach as a global event listener and show a list of all supported shortcuts on the website when the user types ?, like Reddit:

    Screen Shot 2020-06-05 at 7 55 28 PM

  5. added
    mlh
    difficulty: intermediate
    and removed
    status: needs triage
    on Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: intermediatefeaturemlh

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions