fix(search): make keyboard shortcut works again

This commit is contained in:
Bastien Wirtz
2024-07-15 13:55:32 +02:00
parent fe25fb03a8
commit 6c438298f2
4 changed files with 78 additions and 67 deletions

View File

@@ -3,12 +3,14 @@
<form role="search">
<label for="search" class="search-label"></label>
<input
id="search"
name="search"
type="search"
ref="search"
:value="value"
@input.stop="search($event.target.value)"
@keyup.enter.exact="open()"
@keyup.alt.enter="open('_blank')"
@keydown.enter.exact.prevent="open()"
@keydown.alt.enter.prevent="open('_blank')"
/>
</form>
</search>