Skip to content

Feature Request: Add Cmd+K / Ctrl+K Shortcut to Open Search #3467

@KhanjarSingh

Description

@KhanjarSingh

Is your feature request related to a problem? Please describe.
Currently, the MathJax documentation already includes a search button in the top navigation.
However, there’s no keyboard shortcut to open the search box quickly.
Most modern documentation sites allow pressing Cmd + K (macOS) or Ctrl + K (Windows/Linux) to instantly open the search dialog — this greatly improves accessibility and speed.
It’s slightly inconvenient to manually click the search icon each time.

Describe the solution you'd like
Add a global keyboard shortcut:

  • Cmd + K (macOS)
  • Ctrl + K (Windows/Linux)

This shortcut should trigger the existing search modal or input box without requiring a mouse click.

Describe alternatives you've considered

  • Manually clicking the search icon (works, but slower).
  • Using browser search (Ctrl + F), which only searches the current page.

Additional context
Implementing this would align MathJax Docs with the UX standards of modern documentation frameworks such as Docusaurus, VitePress, and Next.js Docs, which all support Cmd + K to open search.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions