Closed St1ggy closed 1 month ago
What does preserving formatting mean, in a code editor? CodeMirror 6 hasn't ever had a special keybinding for shift-enter.
But it does work in the version 6.26.3 and it's broken in the current version
It was never intentionally bound to anything. I guess, despite saying "any OS, any browsers", you're seeing this on Chrome or other Blink-based browsers, where recent version of CodeMirror will no longer support the browser's native contentEditable behaviors.
Attached patch binds Shift-Enter to the same command as Enter. Since this was never an intentional feature, I don't consider anything broken here. You are free to bind it to something else if that works better for you.
Describe the issue
I used to use Shift+Enter to wrap a line while preserving formatting, but this behavior seems to be missing in the current version of @codemirror/view. Is this a bug or is it intended? Why isn't this mentioned in changelog?
Browser and platform
any OS, any browsers
Reproduction link
https://codemirror.net/try/