Skip to content

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

Description

@YuSheng133

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions