Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Command (⌘) key shortcuts on Markdown text areas #1750

Merged
merged 1 commit into from
Jul 2, 2023

Conversation

paradox460
Copy link
Contributor

On MacOS, Ctrl is less commonly used than Command (⌘).
Javascript expresses command as metaKey.

This allows for either Ctrl or Command to be used in the Markdown text area.

Note that on Windows, on some browsers, the "windows" key is labeled as meta, so it would work on windows as well.

http://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey

On MacOS, Ctrl is less commonly used than Command (⌘).
Javascript expresses command as `metaKey`.

This allows for _either_ Ctrl or Command to be used in the Markdown text
area.

Note that on Windows, on some browsers, the "windows" key is labeled as meta, so it would
work on windows as well.

http://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants