Skip to content

Set focus on prior block after deleting multiple blocks #3558

@jasmussen

Description

@jasmussen

A classic text editing flow is the following:

  1. Type a bunch of text, many paragraphs
  2. Decide that some of those are crap, and select those paragraphs
  3. Press delete or backspace to delete them
  4. Then start typing again

Gutenberg is good as far steps 1-3 go. You can easily select multiple paragraphs, either with the keyboard or the mouse. Delete and backspace also work fine for deleting this text. But once you delete text, focus isn't set anywhere.

We have two options for improving this:

  1. Set focus on the preceding block. If that preceding block is a text block then ideally at the end of this text block
  2. Insert an empty text block with focus, then you can either use the slash command, start typing again, or press backspace to delete the empty block.

Thoughts?

Metadata

Metadata

Assignees

Labels

[Feature] Writing FlowBlock selection, navigation, splitting, merging, deletion...[Type] EnhancementA suggestion for improvement.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions