1
0

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
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

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