Skip to content
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

[req] 输入法及发送快捷键的支持问题 #30

Open
YuSheng133 opened this issue Nov 19, 2024 · 0 comments · May be fixed by #31
Open

[req] 输入法及发送快捷键的支持问题 #30

YuSheng133 opened this issue Nov 19, 2024 · 0 comments · May be fixed by #31

Comments

@YuSheng133
Copy link

使用中文输入法时有时会有中英混输的需求,输入此类文本时可能会出现用户希望按enter使输入框中暂存的拼音转为英文的情况。
但sealchat目前没有对用户是否使用IME输入法的判断,导致未完成的消息提前发出后才使得暂存拼音进入输入框。
例子:

  • 希望输出:海豹chat
  • 实际输入:haibao, 按键1, chat, 按键enter
  • 实际输出:发送了一条海豹, 并使得输入框中内容变为chat

需求:
希望能够用类似JS compositionstart/compositionend 的监听方法在前端获知用户是否依然悬停在(用词可能不太对)输入法上,当enter被按下时仅在用户没有输入法暂存内容时才发送消息。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant