diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index f2bec70c..222ddad0 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -11,6 +11,7 @@ - `Fix` - Search input autofocus loosing after Block Tunes opening - `Fix` - Block removing while Enter press on Block Tunes – `Fix` – Unwanted scroll on first typing on iOS devices +- `Fix` - Unwanted soft line break on Enter press after period and space (". |") on iOS devices ### 2.29.1 diff --git a/src/components/modules/blockEvents.ts b/src/components/modules/blockEvents.ts index 88b55ccb..78f23336 100644 --- a/src/components/modules/blockEvents.ts +++ b/src/components/modules/blockEvents.ts @@ -279,8 +279,12 @@ export default class BlockEvents extends Module { /** * Allow to create line breaks by Shift+Enter + * + * Note. On iOS devices, Safari automatically treats enter after a period+space (". |") as Shift+Enter + * (it used for capitalizing of the first letter of the next sentence) + * We don't need to lead soft line break in this case — new block should be created */ - if (event.shiftKey) { + if (event.shiftKey && !_.isIosDevice) { return; }