From 3e7225ebee2fda6e9d30b4911537304da7f80fb9 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 13 Apr 2024 14:08:27 +0200 Subject: [PATCH] fix(editor): do not prevent shift+enter to add a line break in text Resolves https://github.com/go-vikunja/vikunja/issues/250 --- frontend/src/components/input/editor/TipTap.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/input/editor/TipTap.vue b/frontend/src/components/input/editor/TipTap.vue index 54dfcf2df..3c1431064 100644 --- a/frontend/src/components/input/editor/TipTap.vue +++ b/frontend/src/components/input/editor/TipTap.vue @@ -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,