mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-22 10:52:18 +08:00
修复ai对话回车键异常的问题
This commit is contained in:
parent
d78b808050
commit
e50d7e3c44
@ -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('')
|
||||
|
Loading…
Reference in New Issue
Block a user