From 0674a398bd61036d0caf47bc35dc0a482cd58dd8 Mon Sep 17 00:00:00 2001 From: liou Date: Wed, 3 May 2023 16:28:58 +0800 Subject: [PATCH] fix: change input keyup to keypress (#37) --- src/pages/Home/components/Content.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Home/components/Content.vue b/src/pages/Home/components/Content.vue index f0e29e3..7d484a1 100644 --- a/src/pages/Home/components/Content.vue +++ b/src/pages/Home/components/Content.vue @@ -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" >
AI Is Thinking