ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Deleting characters in Android Chrome leaves cursor in wrong position

Open glottus opened this issue 1 year ago • 2 comments

While troubleshooting a separate issue, I found that I have trouble with deleting characters I've just typed in Chrome on my Android phone.

Because the original issue was discovered in Firefox on my phone, these steps were repeated in each browser, but the issues remained distinct with each browser exhibiting it's own bug.

📝 Provide detailed reproduction steps (if any)

  1. Visit the Classic editor at https://ckeditor.com/ckeditor-5/demo/editor-types/
  2. Type a few words, like "Delete this" (pause a second to avoid default behavior of deleting previous whole word with one press of the backspace)
  3. hit backspace a first time
  4. The last character is deleted, but the cursor is left at the wrong position: "Delete th|i" (pipe inserted to show resulting position)
  5. hit backspace a second time: "Delete t|h"
  6. hit backspace a third time "Delete t|" (oddly, this is the one time the cursor is left in the CORRECT position)
  7. hit backspace a fourth time (once only, space character between words is jumped): "Delete| "
  8. hit backspace a fifth time: "Delet|e"
  9. etc...

✔️ Expected result

When backspace is hit, delete only the first adjacent character to the left, leaving the cursor after all remaining text, including spaces.

❌ Actual result

Typing a few characters and then hitting the backspace just as many times (common behavior when you realize your last thee key strikes were errors, for example) results in deleting unintended character(s), leaving at least one of the known mistakes.

📃 Other details

native keyboard Android 14 Samsung Galaxy S22 Ultra One UI version 6.1 Firefox 128.0.3 Chrome 127.0.6533.65


If you'd like to see this fixed sooner, add a 👍 reaction to this post.

glottus avatar Aug 01 '24 19:08 glottus

Most likely a duplicate of some issue in our typing improvements (#16289), which will have a fix released in the next release. Please confirm it's gone by using the nightly docs.

Witoso avatar Aug 02 '24 06:08 Witoso

The issue lacks the feedback we asked for two weeks. Hence, we've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Aug 17 '24 01:08 CKEditorBot

We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

CKEditorBot avatar Oct 01 '24 23:10 CKEditorBot