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.49k stars 415 forks source link

Using Ctrl+p & Ctrl+n to moving menu items in slash menu popover #2052

Closed gutsyy closed 1 year ago

gutsyy commented 1 year ago

Description

CleanShot 2023-04-13 at 11 12 50

This feature exists in the cmdk of Affine, but it cannot be used in the editor. I read the source code and found this comment.

// Abort when press modifier key to avoid weird behavior
// e.g. press ctrl + a to select all or press ctrl + v to paste

If AFFINE also has an AI Copilot, might need to press Ctrl + A to select all, instead of close the slash menu popover.

CleanShot 2023-04-13 at 11 28 12@2x
affine-bot commented 1 year ago

Hello! Thank you for filing an issue. If this is a bug report, please include relevant logs to help us debug the problem.

lawvs commented 1 year ago

@joebeijing Could you have a look?

houjoe0829 commented 1 year ago

After discussion, we agree with that, this shortcut can be added to maintain consistency with Quick Search.