Files
AFFiNE/blocksuite/framework
CommaBotandDarkSky aaf0c9f3d2 fix(editor): apply native bold, italic and underline input in rich text (#15907)
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>
2026-11-24 18:03:15 +08:00
..
2026-09-20 13:01:49 +08:00
2026-11-06 00:58:55 +08:00
2026-09-20 13:01:49 +08:00

BlockSuite Framework

Here are the vanilla framework packages in BlockSuite.