toeverything / blocksuite

🧩 Content editing tech stack for the web - BlockSuite is a toolkit for building editors and collaborative applications.
https://blocksuite.io
Mozilla Public License 2.0
4.08k stars 352 forks source link

中文使用、打开块选择器-选中某个块-然后、没有消失(斜杠是消失的)​åå #7451

Closed hudapao888 closed 2 days ago

hudapao888 commented 4 days ago

What happened?

应该和/一样,选中某个块样式之后、就消失,不然我还得手动删除一下再开始写东西。

Distribution version

macOS ARM 64 (Apple Silicon)

What browsers are you seeing the problem on if you're using web version?

No response

Are you self-hosting?

Relevant log output

No response

Anything else?

image image
affine-issue-bot[bot] commented 4 days ago

Issue Status: 🆕 *Untriaged

*🆕 Untriaged**

The team has not yet reviewed the issue. We usually do it within one business day. Docs: https://github.com/toeverything/AFFiNE/blob/canary/docs/issue-triaging.md

This is an automatic reply by the bot.

L-Sun commented 4 days ago

你是通过搜狗输入法使用 / 这个按键输入的 、 吗?

hudapao888 commented 4 days ago

是的

L-Sun @.***> 于2024年6月30日周日 19:03写道:

你是通过搜狗输入法使用 / 这个按键输入的 、 吗?

— Reply to this email directly, view it on GitHub https://github.com/toeverything/blocksuite/issues/7451#issuecomment-2198522921, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUJTEXFOSN47IACL3RTM7B3ZJ7QZHAVCNFSM6AAAAABKEAFHJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGUZDEOJSGE . You are receiving this because you authored the thread.Message ID: @.***>

EYHN commented 4 days ago

It seems to be a compatibility issue with the Chinese IME. I added a video here

https://github.com/toeverything/blocksuite/assets/13579374/62c2a0bd-8d29-4d71-bab1-5ab031e2afc7

L-Sun commented 4 days ago

It seems to be a compatibility issue with the Chinese IME. I added a video here

The current implementation is based on KeyboardEvent, which cannot detect the symbol "、" inputed by pressing Slash key / in Sogou IME. I will try using InputEvent to address this issue, though there may still be other edge cases.

image