Skip to content

Commit

Permalink
Ignore Enter key when converting text (for Japanese characters)
Browse files Browse the repository at this point in the history
  • Loading branch information
smori1983 committed Nov 26, 2021
1 parent 610de90 commit 2ccbb5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/SearchBox.vue
@@ -1,5 +1,6 @@
<template>
<div class="search-box">
<form @submit.prevent="go(focusIndex)">
<input
ref="input"
aria-label="Search"
Expand All @@ -11,10 +12,10 @@
@input="query = $event.target.value"
@focus="focused = true"
@blur="focused = false"
@keyup.enter="go(focusIndex)"
@keyup.up="onUp"
@keyup.down="onDown"
/>
</form>
<ul v-if="showSuggestions" class="suggestions" :class="{ 'align-right': alignRight }" @mouseleave="unfocus">
<li
v-for="(s, i) in suggestions"
Expand Down

0 comments on commit 2ccbb5a

Please sign in to comment.