diff --git a/ts/editor/inputHandlers.ts b/ts/editor/inputHandlers.ts index a5786ffaf..8864aa26b 100644 --- a/ts/editor/inputHandlers.ts +++ b/ts/editor/inputHandlers.ts @@ -51,7 +51,7 @@ export function onKey(evt: KeyboardEvent): void { } // prefer
instead of
- if (evt.code === "Enter" && !getListItem(currentField)) { + if (evt.code === "Enter" && !getListItem(currentField) && !getParagraph(currentField)) { evt.preventDefault(); document.execCommand("insertLineBreak"); }