Merge branch '6911-saveOnEnter' of https://gitea.verdnatura.es/verdnatura/salix-front into 6911-saveOnEnter
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-06-07 00:59:20 +02:00
commit 7880f66c6e
1 changed files with 2 additions and 4 deletions

View File

@ -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() {