Skip to content

Writing Flow: Arrow keys skip over paragraph containing link #77473

@mcsf

Description

@mcsf

Description

When the cursor is in a paragraph and the next paragraph contains a link (or any inline element that wraps the entire text content), pressing ArrowDown bypasses that paragraph and lands in the one after it.

Steps to reproduce

  1. Create a new post with the following content:
<!-- wp:paragraph -->
<p>a</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><a href="#">a</a></p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>a</p>
<!-- /wp:paragraph -->
  1. Place the cursor at the beginning of the first paragraph.
  2. Press ArrowDown.

Expected behavior

The cursor moves into the second paragraph (the one containing the link).

Actual behavior

The cursor skips the second paragraph and lands in the third.

Environment

Reproducible in Chromium, Firefox, and WebKit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Writing FlowBlock selection, navigation, splitting, merging, deletion...[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions