Skip to content

Commit 0674a39

Browse files
committed
fix: change input keyup to keypress (#37)
1 parent b364f1e commit 0674a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/Home/components/Content.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ const translate = async (text: string, i: number) => {
259259
placeholder="Type your message here..."
260260
input-box
261261
p-3 flex-1
262-
@blur="store.changeMainActive(true)" @focus="store.changeMainActive(false)" @keyup.enter="onSubmit"
262+
@blur="store.changeMainActive(true)" @focus="store.changeMainActive(false)" @keypress.enter="onSubmit"
263263
>
264264
<div v-else class="loading-btn">
265265
AI Is Thinking

0 commit comments

Comments
 (0)