Skip to content

Block Bindings: Pressing Enter from connected block doesn't move focus to the newly created block. #58674

@afercia

Description

@afercia

Description

One of the most established interaction conventions in the Editor is that pressing Enter at the end of a block creates a new default block i.e. a Paragraph and moves focus to the newsly created Paragraph.

Bound (connected) blocks seem to break this long established interaction. When pressing Enter:

  • The new Paragraph is created.
  • Focus is not moved.

Animated GIF to better illustrate:

focus not moved

Step-by-step reproduction instructions

  • Add a normal Paragraph block.
  • Follow instructions from Add the Block Bindings API wordpress-develop#5888 to create a Paragraph with content connected to a post meta.
  • Click the first Paragraph and move the cusror at the end of its content.
  • Press Enter.
  • Observe a new Paragraph is created and receives focus.
  • Click the connected Paragraph.
  • Observe the Paragraph is selected.
  • Press Enter.
  • Observe a new Paragraph is created but focus is not moved to it.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Labels

[Feature] Block bindings[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions