Boost能不能优化下回车发送机制

2026-04-29 08:581阅读0评论SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

拼音的时候按回车就发出去了,我经常中英混打,输入英文的时候按回车,英文没输进入就发送出去了

建议前端监听 compositionstart/compositionend 标记输入法组合状态,只有在 !isComposing && Enter && !Shift 时才发送消息,否则让回车继续用于输入

网友解答:
--【壹】--:

其实有看到 pr,但是不知道官方为什么一直没处理

github.com/discourse/discourse-boosts

FIX: Word limit shouldn't break IME composition (#1)

mainsmall-lovely-cat:main 已打开 03:15AM - 08 Apr 26 UTC small-lovely-cat +19 -1

There exists a bug in discourse boost composer. For IME using language, like …Chinese, the original logic will stop the IME composition when the word is near the limit, causing t

阅读全文
标签:纯水
问题描述:

拼音的时候按回车就发出去了,我经常中英混打,输入英文的时候按回车,英文没输进入就发送出去了

建议前端监听 compositionstart/compositionend 标记输入法组合状态,只有在 !isComposing && Enter && !Shift 时才发送消息,否则让回车继续用于输入

网友解答:
--【壹】--:

其实有看到 pr,但是不知道官方为什么一直没处理

github.com/discourse/discourse-boosts

FIX: Word limit shouldn't break IME composition (#1)

mainsmall-lovely-cat:main 已打开 03:15AM - 08 Apr 26 UTC small-lovely-cat +19 -1

There exists a bug in discourse boost composer. For IME using language, like …Chinese, the original logic will stop the IME composition when the word is near the limit, causing t

阅读全文
标签:纯水