ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] macOS client sumbit content directly when pressing Enter in Chinese input method

Open
#4,051 1 comment 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

A clear and concise description of what the bug is.
When typing English using Chinese input method in macOS client, pressing `Enter` should send the content from the input method into the input box, but the client also submits all the content in the input box to the chat conversation. Please refer to `Screenshots` section for more details

I've searched the issues, both the [macOS client](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/2252) and [web version](https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/331) have been reported to have similar bugs and have been fixed. However i am still able to reproduce it across different client/desktop combinations

**To Reproduce**
Steps to reproduce the behavior:
1. Download latest macOS client
2. Set `Send Key` to `Enter`
3. Open a new chat conversation
4. Switch input method to Chinese
5. Input any words and press `Enter`, you shall see the words submitted into conversation

**Expected behavior**
A clear and concise description of what you expected to happen.
Pressing `Enter` when typing using Chinese input method should not submit it into the chat conversation

**Screenshots**
If applicable, add screenshots to help explain your problem.

https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/assets/4954114/409b82fb-31d4-426d-8ee4-e1d371edd502

**Desktop (please complete the following information):**
- MBP Intel Mid 2015
- OS: [macOS Monterey 12.7.3 (21H1015)]
- Version: [NextChat Version 2.10.3 (20240207.064246)]
- MBP M1 2021
- OS: [macOS Sonoma 14.3]
- Version: [ChatGPT Next Web Version 2.9.12 (20231117.041037]

**Additional Logs**
Add any logs about the problem here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.