Skip to content

[Feature] Introduce Ctrl + k to focus Search bar #248

@0ql

Description

@0ql

At any point where the search bar is visible on the page pressing ctrl + k focuses the search bar so you can start typing the search query instantly.

Something like this:

window.addEventListener("keydown", (e) => {
    if (e.ctrlKey && e.key === "k") {
       e.preventDefault();
       document.getElementById("search").focus();
    }
})

Maybe pressing ctrl + k again could unfocus the search bar but that really isn't that important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions