Pressing Delete with a multi-block selection spanning from a paragraph doesn't delete #3191
Closed
2 tasks done
Labels
[Feature] Writing Flow
Block selection, navigation, splitting, merging, deletion...
Issue Overview
When a multi-selection spans from a paragraph block, pressing
<del>
or<backspace>
does not delete the selected blocks.Steps to Reproduce (for bugs)
Browser: Chrome
Expected Behavior
All the selected blocks will be deleted.
Current Behavior
There are two behaviours:
a) if you selected some text in the first block, then that text is just deleted
b) if you hadn't selected any text in the first block (so you started dragging from past the last word), then it triggers a merge operation with the next block so it looks like some deletion has occurred, but not the deletion that you wanted.
Possible Solution
It's caused by the fact that Delete / Backspace is being handled by the editor (either deleting text or firing merge). I'm going to try and make the editor in
read-only
mode whenever a multi-selection has occurred and see what that looks like. That may or may not be a solution.Related Issues and/or PRs
Todos
The text was updated successfully, but these errors were encountered: