mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-11-30 01:00:27 +03:00
The formatting actions of the iOS selection menu send `formatBold`, `formatItalic` and `formatUnderline` beforeinput events and no key event. The inline editor prevents their default and ignored them, so they did nothing. Route these input types to the Mod-b, Mod-i and Mod-u bindings of the keymap, the same way Android delete and enter input is routed to its key bindings. fix #15445 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Formatting shortcuts for bold, italic, and underline now work with native text input events. * Keyboard bindings continue to handle Android-specific deletion and paragraph insertion events. * **Bug Fixes** * Prevented formatting input events from triggering unrelated shortcuts, and stopped the browser’s default action when a matching shortcut handles the event. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: DarkSky <darksky2048@gmail.com>
BlockSuite Framework
Here are the vanilla framework packages in BlockSuite.