#6911 save on enter #207
|
@ -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
alexm
commented
Review
```
if (event.key === 'Enter') {
event.preventDefault();
if (!event.shiftKey) insert();
}
```
👀
1
|
|||||||
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() {
|
||||||
|
|
Loading…
Reference in New Issue