Boost能不能优化下回车发送机制
- 内容介绍
- 文章标签
- 相关推荐
问题描述:
--【壹】--:
github.com/discourse/discourse-boosts
拼音的时候按回车就发出去了,我经常中英混打,输入英文的时候按回车,英文没输进入就发送出去了
建议前端监听 compositionstart/compositionend 标记输入法组合状态,只有在 !isComposing && Enter && !Shift 时才发送消息,否则让回车继续用于输入
--【壹】--:
其实有看到 pr,但是不知道官方为什么一直没处理
FIX: Word limit shouldn't break IME composition (#1)
main ← small-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
问题描述:
--【壹】--:
github.com/discourse/discourse-boosts
拼音的时候按回车就发出去了,我经常中英混打,输入英文的时候按回车,英文没输进入就发送出去了
建议前端监听 compositionstart/compositionend 标记输入法组合状态,只有在 !isComposing && Enter && !Shift 时才发送消息,否则让回车继续用于输入
--【壹】--:
其实有看到 pr,但是不知道官方为什么一直没处理
FIX: Word limit shouldn't break IME composition (#1)
main ← small-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

