#6911 save on enter #207
|
@ -21,11 +21,9 @@ const currentUser = ref(state.getUser());
|
|||
const newNote = ref('');
|
||||
const vnPaginateRef = ref();
|
||||
function handleKeyUp(event) {
|
||||
jsegarra marked this conversation as resolved
alexm
commented
Review
```
if (event.key === 'Enter') {
event.preventDefault();
if (!event.shiftKey) insert();
}
```
👀
1
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue