fix(editor): do not prevent shift+enter to add a line break in text

Resolves https://github.com/go-vikunja/vikunja/issues/250
This commit is contained in:
kolaente 2024-04-13 14:08:27 +02:00
parent 9eb19e0362
commit 3e7225ebee
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 1 deletions

View File

@ -338,12 +338,14 @@ const editor = useEditor({
HardBreak.extend({
addKeyboardShortcuts() {
return {
'Shift-Enter': () => this.editor.commands.setHardBreak(),
'Mod-Enter': () => {
if (contentHasChanged.value) {
bubbleSave()
}
return true
},
}
}
},
}),
Heading,