diff --git a/src/components/ui/VnNotes.vue b/src/components/ui/VnNotes.vue index 883a8a455..937ec4b6c 100644 --- a/src/components/ui/VnNotes.vue +++ b/src/components/ui/VnNotes.vue @@ -21,11 +21,9 @@ const currentUser = ref(state.getUser()); const newNote = ref(''); const vnPaginateRef = ref(); function handleKeyUp(event) { - if (event.key === 'Enter' && event.shiftKey) { - event.preventDefault(); - } else if (event.key === 'Enter') { - insert(); + if (event.key === 'Enter') { event.preventDefault(); + if (!event.shiftKey) insert(); } } async function insert() {