Skip to content

Cmd+K doesn't focus on the Search input on Firefox Mac #255

@jldec

Description

@jldec

Firefox on Mac maps Cmd+K to focus on the main browser address bar.

I believe sites like https://vercel.com/docs use event.preventDefault() to override this.

Other sites like https://grok.com/ don't (yet?) do this, which results in an awkward popup followed by focus moving to the address bar. GitHub gets around it by using '/' instead, which I quite like.

Happy to push a PR if you like.
j.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions