Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
nyanpasu64 opened this issue Aug 21, 2021 · 3 comments
Labels
[Block] Paragraph Affects the Paragraph Block Browser Issues Issues or PRs that are related to browser specific problems [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended

Comments

@nyanpasu64
Copy link

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.
@stacimc stacimc added [Block] Paragraph Affects the Paragraph Block [Type] Bug An existing feature does not function as intended labels Aug 23, 2021
@westnz
Copy link

westnz commented Sep 7, 2021

I was able to reproduce this.

@skorasaurus
Copy link
Member

skorasaurus commented Jun 13, 2022

can confirm this on Gutenberg 13.4; encountered this while troubleshooting #41416

@ellatrix ellatrix added Browser Issues Issues or PRs that are related to browser specific problems [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... labels Aug 16, 2023
@ellatrix
Copy link
Member

Yes, I encountered this while adding e2e tests for Firefox in #53458.

@ellatrix ellatrix changed the title Pressing Up arrow takes you two lines up, if cursor is at beginning of second line of paragraph Firefox: Pressing Up arrow takes you two lines up, if cursor is at beginning of second line of paragraph Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Paragraph Affects the Paragraph Block Browser Issues Issues or PRs that are related to browser specific problems [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

5 participants