From e50d7e3c442dcd543cb3d0b6f1c37edd2e47053a Mon Sep 17 00:00:00 2001 From: zhoushuaikang <863909694@qq.com> Date: Fri, 1 Mar 2024 10:23:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dai=E5=AF=B9=E8=AF=9D=E5=9B=9E?= =?UTF-8?q?=E8=BD=A6=E9=94=AE=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ui/chat/ai_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui/chat/ai_chat.py b/app/ui/chat/ai_chat.py index 30cff3e..e68513f 100644 --- a/app/ui/chat/ai_chat.py +++ b/app/ui/chat/ai_chat.py @@ -114,7 +114,7 @@ class AIChat(QWidget, Ui_Form): def eventFilter(self, obj, event): if obj == self.textEdit and event.type() == event.KeyPress: - key = event.token() + key = event.key() if key == 16777220: # 回车键的键值 self.send_msg() self.textEdit.setText('')