Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related: #130
This pull request seeks to add basic backspace behavior for removing a block. We'll need to expand upon this, especially for blocks using the
Editable
component, as the block rendering cannot know when a block is empty (it should be up to a block to manage this consideration). As such, the changes here work best with blocks which do not auto-focus an Editable, e.g. the<hr>
separator block. Blocks with editable text can be deleted by carefully clicking twice on the outer border of the block.Testing instructions:
Verify that backspace deletes a block:
Verify that backspace within a text region does not delete the block: