Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bind Shift-Enter to insertNewlineAndIndent
FIX: Bind Shift-Enter to the same command as Enter in the default keymap, so that it doesn't do nothing when on an EditContext-supporting browser. Closes codemirror/dev#1447
- Loading branch information
22d2119
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to use
insertNewlineKeepIndent
here, because almost all online editors don't create a new paragraph by default when you press Shift+Enter