{ document.querySelector('#query').focus(); }, 110); } else { document.querySelector('#query').value = ''; results = { results: 'blank' }; }" @keydown.ctrl.k.window.prevent="modalOpen = ! modalOpen; if ( modalOpen ) { setTimeout(() => { document.querySelector('#query').focus(); }, 110); } else { document.querySelector('#query').value = ''; results = { results: 'blank' }; }" @keydown.up.prevent="handleUpArrow()" @keydown.down.prevent="handleDownArrow()" @keydown.enter.prevent="handleEnter($event)" class="relative z-50 w-auto h-auto my-auto" id="search-window">