Skip to content

Feature Request: Add Ctrl + K keyboard shortcut to focus the search input #100

Description

@theEquinoxDev

Description
On the Joomla.org homepage, there is a search bar at the top. Currently, users need to manually click into the search field to start typing.
A very common UX improvement (as seen on GitHub, Notion, Figma, etc.) is to allow pressing Ctrl + K (or Cmd + K on macOS) to auto-focus the global search input.

Steps to reproduce

-Visit https://joomla.org/
-Press Ctrl + K
-Nothing happens (search input is not focused)

Expected behavior
Pressing:
-Ctrl + K (Windows/Linux)
-Cmd + K (Mac)

…should focus the main search input automatically so users can start typing immediately.

Why this is useful

-improves discoverability of search
-faster navigation
-familiar shortcut UI pattern
-improves accessibility
-reduces clicks

Suggested implementation approach

-add global keydown listener
-check for Ctrl/Cmd + K
-preventDefault()
-focus the search input
-optionally highlight text

I'd love to work on this
If this feature is relevant, I'd be happy to submit a PR implementing it. Please let me know if this is accepted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions