-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Xiaomi] Buggy double characters on mobiles #15584
Comments
Hi, thanks for the report. Do you use some specific keyboard (like Gboard) or the built-in one in Miui? |
No, we tested it on native keyboard on all the Xiaomi smartphones. I have attached the test file to this comment, you can rename it to .html and test. This is a native CKEditor example from the website. Thank you. |
It's not only Xiaomi! The double first characters do occur with the built-in external physical keyboard, but not always. But there's another issue that might be related and seems to switch places with the 'double characters' (physical or virtual keyboard, doesn't matter - it's either this below or double characters, not both at the same time): Let's just say I type in 'physical' and try to remove that word letter by letter with backspace. Once I get to the p, the whole word 'physical' just pops up again as if I never deleted it. If I want to write the next word and press 'space' it just copies the whole word again. I cannot 'select all' and delete that word either, it just... copypastes once I just try to select it. It's almost impossible to work with CKEditor5 on my mobile device, so a fix would be more than appreciated! |
Thank you for the comment, we have those reports registered and plan to debug those soon.
|
Also reported against Drupal: https://www.drupal.org/project/drupal/issues/3417978#comment-15420910 |
@lazar2038 Can you please confirm that the behavior in step 4 really results in “zxz” and not ”zzx”? Everything else strongly suggests that this is in fact a duplicate of #14567? From my experience after debugging that issue, “zzx” makes no sense because the single letter duplication is caused by the selection effectively off-by-one. In combination with the composition behavior on Android this causes the replacement to be slightly off which causes a leftover character to appear to the right of the caret. @WItso Point 4 is the only difference to #14567, if the user confirms that they really meant to write “zxz” as the result, then this is definitely a duplicate. |
My mistake. Step 4 results in "zzx". |
@lazar2038 You just wrote exactly what is written in your initial description which is a bit confusing when you start with “My mistake”. I’m sorry to bother you, but I’m not sure if I’m just dumb here! ;-) You wrote: Step 4 results in Following my observations it should result in |
Oh. My mistaken mistake. The result is definitely "zzx". The first letter of every word except first word is cloned. |
My mistaken mistake, i understood you incorrectly. Yes, the result is definitely "zzx". |
Thanks for taking your time to clarify it! So this is actually a different issue to the one I was having my luck with. |
@lazar2038 I did some more testing and found somewhat of a fix that addresses a lot of problems that occur around spaces. My latest attempt is included at the end of #13994 (comment), it requires manually patching the source to incorporate the change, even hot patching the Considering everything I have learned so far, I am somewhat confident that it solves your issue. Would love to hear some feedback from you if you can spare the time! 🙂 |
📝 Provide detailed reproduction steps (if any)
Open editor on the mobile
Choose any language. Let it be "English" for example
Start typing "Z", make empty space
then type "zx", and it will convert to "zzx"
You may also type "c", add space, and it will be converted to "cc"
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: