-
Notifications
You must be signed in to change notification settings - Fork 152
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
Input on android and IME has a bug when typing first char #589
Comments
I've observed the same bug pointing my android chrome or android firefox browser to http://bustle.github.io/mobiledoc-kit/demo/ as well as in our app. Its severe enough to make it borderline unusable. Any ideas on how to fix? |
@raycohen Thanks for the reproduction. |
@raycohen and @part145pro Thanks for raising this issue. Does this screengrab from an emulator accurately show what you are seeing? I notice a few issues related to selection, and it seems that after the first character that I type, the remaining characters seems to function ok. I agree that this should be fixed, though. (The text I typed is "a" then "b" then "c"). |
@bantic Yes, that screengrab matches the behavior I get in Chrome on a Pixel 2. Firefox on android is definitely less important to us, but it has an additional quirk - the first keypress 'a' - gets swallowed and nothing appears. So if you type |
I've been looking at this a bit. What I've dug up so far:
I'll continue diving in here. One debugging approach I've found useful is simply to stop listening for the |
I try to stop listening for the Could you explain more detail about how the editor handle user input? I'm trying to find the root of IME input issue. |
According to this: http://blog.evanyou.me/2014/01/03/composition-event/
I think the paragraph's value is changed during a composition, so only got first letter. |
any progress on this bug? |
I raised a pull request TryGhost#11 |
I'm experiencing this in Chrome for Android (Pixel 7, US English), so unfortunately this is still a problem in 2023. I love love love mobiledoc-kit but this is unfortunately a showstopper for my app :-( In the discussion above, @mixonic stated this:
At this point, I would suggest that it's quite safe to drop IE11 support, and that supporting Chrome for Android is far more important. How much work is involved in switching the code to use input events? |
Android:
When inserting text in the editor, after the first char the cursor moves back to start of editor area (instead than remaining after the inserted char), and after inserting another char the first char is duplicated.
the cursor is shown like '|'
the area delimiter is '<<' and '>>'
bug :
.. and so on
Hint:
tracking the event 'cursorDidChange' I have seen that on Android this happen once more than on PC browser when the editor area is empty and you type the first charkey.
The text was updated successfully, but these errors were encountered: