From bfb0c7fa5e746bdec4e5cd7c165efcbc4e0d88e7 Mon Sep 17 00:00:00 2001 From: L-Sun Date: Wed, 20 Nov 2024 05:41:15 +0000 Subject: [PATCH] =?UTF-8?q?chore(blocks):=20remove=20trigger=20key=20'?= =?UTF-8?q?=E3=80=81'=20from=20slash=20menu=20(#8768)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close [BS-1757](https://linear.app/affine-design/issue/BS-1757/中文输入法下触发slashmenu问题) This PR removes the trigger key `、` from the slash menu to improve the CJK user input experience. For users of Sougo Pinyin on macOS, you can disable the auto-transform from `/` to `、` in the IME settings. --- packages/blocks/src/root-block/widgets/slash-menu/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/blocks/src/root-block/widgets/slash-menu/config.ts b/packages/blocks/src/root-block/widgets/slash-menu/config.ts index 69f2418f6783..61763b8147ef 100644 --- a/packages/blocks/src/root-block/widgets/slash-menu/config.ts +++ b/packages/blocks/src/root-block/widgets/slash-menu/config.ts @@ -119,7 +119,7 @@ export type SlashMenuContext = { }; export const defaultSlashMenuConfig: SlashMenuConfig = { - triggerKeys: ['/', '、'], + triggerKeys: ['/'], ignoreBlockTypes: ['affine:code'], maxHeight: 344, tooltipTimeout: 800,