You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 likeua-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.
The text was updated successfully, but these errors were encountered: