Skip to content

Firefox: Pressing Up arrow takes you two lines up, if cursor is at beginning of second line of paragraph #34215

Open
@nyanpasu64

Description

Description

In a multi-line paragraph, if the cursor is at the beginning of the second line, pressing Up takes you two lines up instead of one. (Gutenberg acts as if the cursor was still within the first line.)

Step-by-step reproduction instructions

  1. Edit a post with any block (quote, paragraph...) followed by a paragraph.
  2. Place the cursor at the second line of the following paragraph.
  3. Press the Up arrow key.

If the "following paragraph" is a quote instead, pressing Up will highlight the quote block (as if the cursor was on the first line) instead of moving the cursor to the first line.

Screenshots, screen recording, code snippet

wordpress.up.arrow.mp4

Environment info

  • Version: Wordpress 5.8, built-in editor, Argon and 2021 theme. Also reproduced on https://wordpress.org/gutenberg/.
  • Browser: Firefox and Edge
  • Device: Laptop with Windows 10 x64

Pre-checks

  • I have searched the existing issues.
  • I have tested with all plugins deactivated except Gutenberg.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Browser IssuesIssues or PRs that are related to browser specific problems[Block] ParagraphAffects the Paragraph Block[Feature] Writing FlowBlock selection, navigation, splitting, merging, deletion...[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions