-
Notifications
You must be signed in to change notification settings - Fork 61k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] MacOS 下 Safari 中使用中文输入法时回车 #4297
Comments
Title: [Bug] Press Enter when using the Chinese input method in Safari under MacOS |
Mac 版桌面 App 也是这个问题,不得不切换成了 Ctrl + Enter 来发送 |
The Mac version of the desktop app also has this problem, and I have to switch to Ctrl + Enter to send |
mac下safari测试也有这个问题,但是chromium类型的浏览器就没有这个问题 |
Safari testing under mac also has this problem, but chromium-type browsers do not have this problem |
I've tested it and can't reproduce it. Can you provide the specific input content to reproduce the issue? |
我设置成 shift + enter 发送,暂时能满足 |
I set it to shift + enter to send, which is enough for the time being. |
actually anything |
On MacOS, Tauri uses the Safari kernel by default, and Safari's event.isComposing is always false, and only keyCode is used to determine whether it is an input method state. |
可以参考我的commit,加一行keyCode判断。这是非直接输入法在Safari中的 |
Merged, @freejool would you mind check whether the issue still exists again |
@freejool I think so, I found that build still have the bug, you can check my new build https://chat-gpt-next-web-git-main-raaxs-projects.vercel.app |
Bug Description
MacOS 下 Safari 中使用中文输入法输入一些字符,此时输入的字符以英文输入输入框后立即被发送,而不是仅输入输入框
同设备下Chrome无此问题
Steps to Reproduce
Expected Behavior
字符仅输入输入框,不被发送
Screenshots
No response
Deployment Method
Desktop OS
MacOS 14.4
Desktop Browser
Safari
Desktop Browser Version
17.4
Smartphone Device
No response
Smartphone OS
No response
Smartphone Browser
No response
Smartphone Browser Version
No response
Additional Logs
No response
The text was updated successfully, but these errors were encountered: