Ionaru / easy-markdown-editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://stackblitz.com/edit/easymde
MIT License
2.38k stars 314 forks source link

Add keyboard shortcuts for headings #451

Closed vanillajonathan closed 2 years ago

vanillajonathan commented 2 years ago

These are the same keyboard shortcuts used in TinyMCE.

Ionaru commented 2 years ago

I'm not convinced Shift+Alt+1 is the right shortcut for this function. I would prefer it to be more in line with the existing shortcuts.

Maybe Ctrl+Alt+1? That shortcut is also used in Microsoft Word for and probably is more in line with what users would expect.

vanillajonathan commented 2 years ago

The reason I used Shift+Alt+1 is because that is what TinyMCE uses.

I can change it to Ctrl+Alt+1 if you would like me to (or you could do it yourself).

vanillajonathan commented 2 years ago

What do you think?

Ionaru commented 2 years ago

Change it to Ctrl+Alt+1 and add it to the README as well, please.