Skip to content

Save button tooltip assumes Mac keyboard #204

@Mego

Description

@Mego

Currently, the tooltip for the save button is hardcoded to use the Mac Command key icon (&8984), regardless of the user's environment. A better implementation would be to use the browser's user agent to determine the user's OS (using something like ua-parser-js) and display an appropriate tooltip (Cmd-Enter for Mac OS and iOS, Ctrl-Enter for others).

Parsing OS information from the user agent isn't a perfect solution, but it's the best solution that will work across the vast majority of browser configurations. There is no way to determine if a user agent is accurate for the actual environment, so it will just have to be trusted.

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