danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, OpenAI, Assistants API, Azure, Groq, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
17.24k stars 2.87k forks source link

[Bug]: Pressing Enter in Chinese Input Method Sends Message Instead of Confirming Text on Safari #3412

Open 1158399630 opened 1 month ago

1158399630 commented 1 month ago

What happened?

When using macOS with a Chinese input method to type English words on the web, pressing the Enter key directly sends the message instead of confirming the selected word and placing it into the input box. The expected behavior is that pressing Enter should first confirm the selected word.

Steps to Reproduce

1.on macOS system. 2.Switch to a Chinese input method (e.g., Pinyin). 3.Start typing an English word (e.g., "test") using the Chinese input method. 4.Press Enter to confirm the word.

What browsers are you seeing the problem on?

Safari

Relevant log output

No response

Screenshots

No response

Code of Conduct

aoaim commented 1 month ago

这个好像是Safari的问题,其他的浏览器都没问题。可以参考这里用油猴脚本解决 https://greasyfork.org/zh-CN/scripts/470612-chagpt-safari-%E4%B8%AD%E6%96%87%E8%BE%93%E5%85%A5%E6%B3%95%E5%9B%9E%E8%BD%A6%E9%94%AE%E4%BF%AE%E5%A4%8D