Skip to content

Commit

Permalink
Merge pull request #172 from studio1902/feature/invoke-search-keyboard
Browse files Browse the repository at this point in the history
Invoke and close search with keyboard
  • Loading branch information
robdekort committed Nov 3, 2021
2 parents 702c552 + bc56e28 commit 0632f0d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/resources/views/components/_search_form.antlers.html
Expand Up @@ -10,6 +10,8 @@

<li
x-data="{ open: false, value: '' }"
@keydown.window.prevent.slash.="open = true, setTimeout(() => {$refs.input.focus()}, 200)"
@keydown.window.prevent.esc="open = false"
@click.outside="open = false"
class="flex py-2 relative"
x-cloak
Expand Down

0 comments on commit 0632f0d

Please sign in to comment.