Skip to content

Commit

Permalink
fix: change input keyup to keypress (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
liou666 committed May 3, 2023
1 parent b364f1e commit 0674a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Home/components/Content.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ const translate = async (text: string, i: number) => {
placeholder="Type your message here..."
input-box
p-3 flex-1
@blur="store.changeMainActive(true)" @focus="store.changeMainActive(false)" @keyup.enter="onSubmit"
@blur="store.changeMainActive(true)" @focus="store.changeMainActive(false)" @keypress.enter="onSubmit"
>
<div v-else class="loading-btn">
AI Is Thinking
Expand Down

0 comments on commit 0674a39

Please sign in to comment.