#6911 save on enter #207

Merged
jsegarra merged 50 commits from 6911-saveOnEnter into dev 2024-06-07 07:20:48 +00:00
1 changed files with 2 additions and 4 deletions
Showing only changes of commit 26c7b09b8a - Show all commits

View File

@ -21,11 +21,9 @@ const currentUser = ref(state.getUser());
const newNote = ref(''); const newNote = ref('');
const vnPaginateRef = ref(); const vnPaginateRef = ref();
function handleKeyUp(event) { function handleKeyUp(event) {
jsegarra marked this conversation as resolved
Review
    if (event.key === 'Enter') {
        event.preventDefault();
        if (!event.shiftKey) insert();
    }
``` if (event.key === 'Enter') { event.preventDefault(); if (!event.shiftKey) insert(); } ```
if (event.key === 'Enter' && event.shiftKey) { if (event.key === 'Enter') {
event.preventDefault();
} else if (event.key === 'Enter') {
insert();
event.preventDefault(); event.preventDefault();
if (!event.shiftKey) insert();
} }
} }
async function insert() { async function insert() {