Replies: 3 comments
-
问题定位文件位置: 在 Safari + 微信输入法的组合下, 修复方案if (e.key === "Enter") {
// 三重检测:React state + 原生属性 + keyCode 后备
if (isComposing || e.nativeEvent.isComposing || e.keyCode === 229) {
return;
}
if (e.shiftKey) {
return;
}
e.preventDefault();
// ... 触发发送
}
验证结果环境:macOS + Safari + 微信输入法
|
Beta Was this translation helpful? Give feedback.
-
|
已验证,在Mac上,Chrome浏览器无此问题,暂时只发现safari浏览器存在此问题。 It has been verified that on Mac, the Chrome browser does not have this problem. For the time being, this problem is only found in the Safari browser. |
Beta Was this translation helpful? Give feedback.
-
|
微信输入法的这个 bug 同时也会在 Mac 端 Safari 的网页 bilibili,网页ChatGPT,网页 gemini 复现。 This bug in the WeChat input method will also reappear in the Mac Safari web pages bilibili, web ChatGPT, and web gemini. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What feature would you like to see?
问题描述
在 Web UI 的输入框中使用中文输入法输入英文后按回车确认,会错误地直接触发消息发送,而不是将英文输入到文本框中。
复现步骤
kimi webtest),此时输入法显示候选框test被输入到文本框,不发送消息需求
确保在输入法处理按键期间,回车键不会触发消息提交。
环境信息
Additional information
No response
What feature would you like to see?
Problem description
Using the Chinese input method to enter English in the input box of the Web UI and then pressing Enter to confirm will incorrectly trigger message sending directly instead of inputting English into the text box.
Reproduction steps
kimi webin the browsertest), and the input method will display the candidate box.testis entered into the text box, no message is sentRequirements
Ensure that the Enter key does not trigger message submission while the input method is processing key presses.
Environmental information
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions