mirror of
https://github.com/wtc86939209/WeChatMsg110.git
synced 2026-10-26 01:54:33 +08:00
修复ai对话回车键异常的问题
This commit is contained in:
1 parent
d78b808050
commit
e50d7e3c44
1 file changed
+1
-1
@@ -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('')
|
||||
|
||||
Reference in new issue
Block a user