•
{
note.is_editing = false;
let dom = document.getElementById(new_note) ;
dom.focus()
}, 1000 ) "
@keydown.esc.prevent="document.activeElement.blur(); note.is_editing = false;"
@keydown.tab.prevent="let shift = $event.shiftKey
if( shift ) {
ilse.notes.list[note.id].depth--
depth--
} else {
depth++
ilse.notes.list[note.id].depth++
}
"
@keydown.ctrl.up="let copy = index; let previous_index = --copy;
if( list[previous_index] ) {
let dom = document.getElementById( list[previous_index].id );
if( dom ) {
list[previous_index].is_editing = true
document.activeElement.blur()
setTimeout( () => { let dom = document.getElementById( list[previous_index].id + '-edit' ); if( dom ) dom.focus(); }, 1 )
}
}"
@keydown.ctrl.down="let copy = index; let next_index = ++copy;
if( list[next_index] ) {
let dom = document.getElementById( list[next_index].id );
if( dom ) {
list[next_index].is_editing = true
document.activeElement.blur()
setTimeout( () => { let dom = document.getElementById( list[next_index].id + '-edit' ); if( dom ) dom.focus(); }, 1 )
}
}"
>
{let dom = document.getElementById( note.id + '-edit' ); dom.focus() }, 10 )
} " >