wordpress-mobile / wordpress-mobile/GutenbergKit

Holding backspace on Android sporadically fails to delete text sequentially

Open
#138 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Bug
Dominant language
JavaScript
Stars
29
Forks
6
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Description

When focused on a text block, pressing and holding Backspace does not delete text across multiple blocks as expected. At times, the deletion will simply stop after emptying one text block and moving focus to the next; other times, it will erroneously place the cursor at the beginning of the newly focused text block instead of the end.

When holding Backspace, each word in the text block should be deleted. Once the block is empty, the block should be removed, the previous block should be focused with the cursor at the end of the text, and deletion should continue as long as the Backspace key is pressed.

Step-by-step reproduction instructions
  1. Open a post with a decent amount of text on Android.
  2. Focus a text block that follows other text blocks.
  3. Move the cursor to the end of the text block.
  4. Press and hold the Backspace key.
Screenshots, screen recording, code snippet

https://github.com/user-attachments/assets/850022a2-6ce5-47a6-a491-3ef3590a8369

Environment info
  • Jetpack 25.8
  • Samsung Galaxy S20, Android 13
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
Please confirm which theme type you used for testing.
  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on Android 13 with a Samsung Galaxy S20, using multiple text blocks and holding Backspace from the end of a block. Trace the editor's focus and deletion handling as an empty block is removed. Done means deletion continues across blocks, the previous block is focused with the cursor at its end, and the behavior is covered by a regression test if the relevant test entry point is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.