Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Bug] Text input problems: cursor jumps around, spaces are removed, characters are duplicated #4208

Closed
Poopooracoocoo opened this issue Jul 22, 2019 · 81 comments
Labels
🐞 bug Crashes, Something isn't working, .. Feature:Forms Feature:IME Text entry and keyboards needs:gv GeckoView bug required to fix the issue. See bugzilla.mozilla.org P3 Some future sprint S2 Major Functionality/product severely impaired and a satisfactory workaround doesn't exist

Comments

@Poopooracoocoo
Copy link

Poopooracoocoo commented Jul 22, 2019

Steps to reproduce

  1. find text field
  2. start typing a sentence.

Expected behavior

cursor won't jump, letters will stay in place, spaces won't be removed and parts won't be duplicated

Actual behavior

all of the above happens :(

Info

Also reproducible in Firefox Focus with GeckoView
I've noticed that typing incredibly slow avoids the issue.

Device information

  • Android device: Galaxy S5 (I've also tested on other devices such as a Galaxy S4, Bluestacks 4)
  • Fenix version: Nightly 190707 18:02 (Build #11881816)
    📦: 3.0.0
    🦎: 68.0-20190612114833

┆Issue is synchronized with this Jira Task

@Poopooracoocoo Poopooracoocoo added the 🐞 bug Crashes, Something isn't working, .. label Jul 22, 2019
@Johnnyyyy1234
Copy link

interesting... have you tried clearing the apps cache?

@cadeyrn
Copy link
Contributor

cadeyrn commented Jul 22, 2019

Which keyboard do you use? Which Android version? And have you tried it with a current Nightly build? Your build is outdated. I can't reproduce with HTC U11 / Android 8.0 / TouchPal keyboard.

@Poopooracoocoo
Copy link
Author

Poopooracoocoo commented Jul 23, 2019

I've tried it with Samsung Keyboard, Gboard, SwiftKey and Fleksy as well as Google Keyboard (old version of Gboard which is frankly faster). My build was outdated and after having updated, I'm still able to repro.
@JonO7694
Clearing the app's cache did nothing.

Did you type that comment with your setup you mentioned? @cadeyrn I typed the issue with my setup and it was super painful. I'm typing this comment on a desktop tho

@cadeyrn
Copy link
Contributor

cadeyrn commented Jul 23, 2019

Not that comment but I typed a lot of other comments with my smartphone and without any problems.

Since there are not much more reports like this it looks like not many people are affected. So let's hope that someone from Mozilla can reproduce with one of their devices. :)

@sblatz sblatz added the needs:STR steps to reproduce label Jul 23, 2019
@sblatz
Copy link
Contributor

sblatz commented Jul 23, 2019

@Poopooracoocoo are you able to reproduce in Reference Browser? What about Focus with GV disabled 🤔

@boek boek added needs:gv GeckoView bug required to fix the issue. See bugzilla.mozilla.org needs:group-triage labels Jul 23, 2019
@boek
Copy link
Contributor

boek commented Jul 23, 2019

@cpeterso Since this is also happening in Focus it looks like it could be GV related?

@Poopooracoocoo
Copy link
Author

@sblatz I haven't used ref browser in ages and don't have it anymore. It didn't happen in Focus without GV. @boek I'm pretty sure that this is a GV issue but I wanted to make an issue here as not only would it be seen but I wasn't sure.

@hkaancaliskan
Copy link

hkaancaliskan commented Jul 24, 2019

Writing is not so slow for me but selecting text with double tap or doing sth like this is a real pain.
Xperia XZ1 Android 9
Nightly 190723 18:04 (Build #12041810)

@Poopooracoocoo
Copy link
Author

@hakkikaancaliskan I have the same issues with selecting text. Are you sure that your typing is not like what I said above? Which keyboard?

@hkaancaliskan
Copy link

@hakkikaancaliskan I have the same issues with selecting text. Are you sure that your typing is not like what I said above? Which keyboard?

I'm sure, no problem on typing but editing is painful. Same on Gboard and Swiftkey.

@cpeterso
Copy link

Since this problem affects Fenix and Focus+GV, I filed a new GV bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1569007

This definitely sounds like a keyboard or IME problem.

@Poopooracoocoo - Can you reproduce the problem in Firefox 68 for Android? Is this problem reproducible in every web page with a text field?

https://play.google.com/store/apps/details?id=org.mozilla.firefox

@cpeterso cpeterso changed the title [Bug] Typing is erratic and painful [Bug] Text input problems: cursor jumps around, spaces are removed, characters are duplicated Jul 25, 2019
@Poopooracoocoo
Copy link
Author

Poopooracoocoo commented Jul 26, 2019

I'm not sure whether it's a problem in every text field but it certainly happens in GitHub text fields such as username/email, feature request/bug/issues and comments. It doesn't happen in the password field but I'm not typing full sentences in the password field so it's hard to confirm.

I typed that comment on a desktop but retyped it on Fennec 68. I had no issues except for my own spelling errors :P I noticed that compared to Fenix and Focus, typing in Fennec and other apps is faster too. I didn't think speed would be part of the issue as well.

@Poopooracoocoo
Copy link
Author

Hooray! I no longer have this issue!

I'm not sure what happened. I still have text selection issues though

@cpeterso
Copy link

I still have text selection issues though

Is there a Fenix bug filed for your text selection issues?

@Poopooracoocoo
Copy link
Author

Poopooracoocoo commented Aug 15, 2019

@cpeterso arfggggggghhhhhhhghhh I'm now having those issues again in Focus. I bet this still happens in Fenix.

I don't think there's an issue for those test selection issues.

@cpeterso
Copy link

@cpeterso arfggggggghhhhhhhghhh I'm now having those issues again. I bet this still happens in Fenix.

OK. I'll reopen the corresponding GeckoView bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1569007#c2

@boek boek added P3 Some future sprint and removed needs:group-triage labels Aug 20, 2019
@cpeterso
Copy link

@cpeterso arfggggggghhhhhhhghhh I'm now having those issues again in Focus. I bet this still happens in Fenix.

@Poopooracoocoo - Focus has an old version of GeckoView. Can you please check whether the latest Fenix version still works on your device?

@rekotc
Copy link

rekotc commented Sep 16, 2019

cursor won't jump, letters will stay in place, spaces won't be removed and parts won't be duplicated

I can confirm it happens to me, i have a fairly old phone which might be the culprit, Samsung Galaxy S2 (using LineageOS 14). But the problem doesn't happen in every webpage, i noticed it in particular using twitter.com, every tweet i write is a pain!

I've noticed that typing incredibly slow avoids the issue.

Same here. It looks like the browser cannot keep up with the typing speed

@cpeterso
Copy link

@rekotc - Which Fenix version are you testing? Do you also seen this typing problem in Firefox for Android (Fennec 68)?

@Poopooracoocoo
Copy link
Author

I've noticed that when this happens, the keyboard (Gboard in my case) will not have caught up with the browser (fenix and focus). I think that it's not the keyboards fault and that Fenix/Focus aren't telling the keyboard in time. Back to my point, the keyboard's suggestions will be rather late and sometimes not appear at all. Typing passwords is still normal.

@hebu
Copy link

hebu commented Apr 3, 2021

I experienced the cursor issues on different web pages, but it does not occur always – so it is hard to reproduce.

  • enter some text
  • change cursor positon
  • enter more text, the cursor gets reset to the old position and the text is inserted there
  • tap outside the textfield
  • now place the cursor to a new position by tapping into the textfield
  • enter more text, now the text is inserted in the new position

Other weird stuff happens, when trying to select and replace text...

Fenix version: 87.0.0-rc.1 (Build #2015799099)
Keyboard: GBoard 10.3.05

@orionlee
Copy link

orionlee commented Apr 20, 2021

https://bugzilla.mozilla.org/show_bug.cgi?id=1672095 has been landed, but we doesn't merge with Fenix Nightly yet.

@makotokato The use case I encountered (Zooniverse talk pages) is resolved with current Fenix Nightly, with GV version 89.0a1

@Waqar144
Copy link

@makotokato did it ever land? Is there a possibility that this will be fixed anytime soon?

@makotokato
Copy link

@makotokato The use case I encountered (Zooniverse talk pages) is resolved with current Fenix Nightly, with GV version 89.0a1

https://bugzilla.mozilla.org/show_bug.cgi?id=1672095 is already merged on Firefox 84+. I need exactly reproduce step since I cannot reproduce original issue.

@igalic
Copy link

igalic commented Apr 20, 2021

i don't understand how you're trying to reproduce this?

this happens in every text input field which has JavaScript helpers for completion or editing

gitea's default input field is unusable. fortunately, it's on the way out: go-gitea/gitea#15394
you can't use any @-completion or #-completion in TheLounge.

There's public instances of these things, you can just try it out

@staktrace
Copy link

@makotokato I've seen this issue in the past, and recently have started running into other cases where typing on the keyboard causes the caret to jump somewhere else and then the characters get entered at that new location (which obviously is not where I want them to go). It's not reliably reproducible but happens to me at least once a week, and once it gets into that state it's hard to clear. Are there prefs/logging I can turn on and collect that would help you with this?

@kevinlyles
Copy link

@makotokato ... and recently have started running into other cases where typing on the keyboard causes the caret to jump somewhere else and then the characters get entered at that new location (which obviously is not where I want them to go). It's not reliably reproducible but happens to me at least once a week, and once it gets into that state it's hard to clear. Are there prefs/logging I can turn on and collect that would help you with this?

I have also been seeing this over the past month or so. Today I saw it with the phone number field on https://register.moen.com.

@orionlee
Copy link

I have also been seeing this over the past month or so. Today I saw it with the phone number field on https://register.moen.com.

As a data point, the phone number field on https://register.moen.com worked in my setup.

  • A recent Firefox Nightly, GBoard or Hacker's keyboard, on a Android 7.0-based tablet.
  • I tried filling the field quite a few times in a span of about 10 minutes. It consistently worked.

Firefox Nightly build info:

90.0a1 (Build #2015810955)
AC: 90.0.20210516190059, be02514d7
GV: 90.0a1-20210516091748
AS: 76.0.0

@makotokato
Copy link

@staktrace @kevinlyles
If this issue mostly occurs on Gboard, this will be race condition between setting composition by Gboard and synchronizing internal Gecko text. Gboard sets composing text aggressively. So I am looking for another workaround...

@kevinlyles
Copy link

I can confirm that I'm using Gboard

@Mikaka27
Copy link

I'm not using gboard and I see similar issue in my bank's website.
If I'm typing account number the characters are inverted.
So if I type "1234" I may get "1243" or something like that.

This occurs on Samsung Galaxy J7 2017 stock keyboard, and Xiaomi Redmi 6 also stock keyboard.

I'm not sure if this is the same issue.

@makotokato
Copy link

I hope that some issues will be fixed by https://bugzilla.mozilla.org/show_bug.cgi?id=1713588.

@stale
Copy link

stale bot commented Nov 28, 2021

See: #17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 28, 2021
@zepfietje
Copy link

I believe this issue has not been fixed yet.

@stale stale bot removed the wontfix label Nov 28, 2021
@ddarfantasy
Copy link

No, the problem certainly hasn't been solved.
It's really a frustrating experience to encounter the issue.
eg. If you type quickly at https://code.cs61a.org/

@makotokato
Copy link

makotokato commented Dec 9, 2021

@ddarfantasy

No, the problem certainly hasn't been solved. It's really a frustrating experience to encounter the issue. eg. If you type quickly at https://code.cs61a.org/

Your issue is another issue. I guess that this site uses Ace editor, If you can reproduce this on https://ace.c9.io/, please tell me about your environment (Your Android version, software keyboard such as GBoard).

@Poopooracoocoo
Copy link
Author

While I still have a lot of problems with the text entry experience in GeckoView, it's finally acceptable!! It looks like no work has been done here for a while though. Hopefully priorities will change around here. We can't quite close this issue yet. :(

Currently using Gboard on a Samsung Galaxy S20 running Android 11.

I'm so glad that I no longer pull my hair out when writing comments like these. Thanks Makoto. Selection and cursor manipulation is another area that could do with some attention.

@stale
Copy link

stale bot commented Nov 19, 2022

See: #17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 19, 2022
@stale stale bot removed the wontfix label Nov 19, 2022
@kbrosnan
Copy link
Contributor

Makotokato resolved several major issues with cursor placement and text insertion in rich text fields. There may still be some problems but are best addressed as separate bugs reported at https://bugzilla.mozilla.org/enter_bug.cgi?product=Geckoview&component=IME including the website and keyboard that you are using.

@kbrosnan kbrosnan closed this as not planned Won't fix, can't repro, duplicate, stale Jan 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. Feature:Forms Feature:IME Text entry and keyboards needs:gv GeckoView bug required to fix the issue. See bugzilla.mozilla.org P3 Some future sprint S2 Major Functionality/product severely impaired and a satisfactory workaround doesn't exist
Projects
None yet
Development

No branches or pull requests