Skip to content

Commit 3cf9293

Browse files
authored
Support breaking out of lists with shift+enter (#54)
1 parent 095a8ff commit 3cf9293

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,9 @@
544544
}
545545

546546
handleSmartEnter(e) {
547+
// Shift+Enter: insertsa plain newline, breaking out of lists
548+
if (e.shiftKey) return;
549+
547550
const { value, selectionStart } = this.editor;
548551
const beforeCursor = value.substring(0, selectionStart);
549552
const afterCursor = value.substring(selectionStart);

0 commit comments

Comments
 (0)