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:
parent
9eb19e0362
commit
3e7225ebee
@ -338,12 +338,14 @@ 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
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
Heading,
|
Heading,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user