jerboa icon indicating copy to clipboard operation
jerboa copied to clipboard

Issues with typing (backspace)

Open PassionateG1t opened this issue 3 years ago • 39 comments
trafficstars

When pressing the backspace several times, sometimes the last word would go back one character and attach itself to the one behind it.

Say I've written the following sentence:

I can't believe you've done this

If I delete the last 5-6 characters, the following would happen:

I can't believe you'vedon

A temporary bypass is to select the characters that you want and delete them all at once.

PassionateG1t avatar Jul 14 '22 18:07 PassionateG1t

This one is really difficult to beat, and incredibly annoying. I think it has something to do with the keyboard settings being messed up / wrong on jetpack-compose. I've tried a lot of ways to disable or mess with the Keyboard settings not working correctly, even after disabling auto-correct:

keyboardOptions = KeyboardOptions.Default.copy(
  capitalization = KeyboardCapitalization.Sentences,
  keyboardType = KeyboardType.Text,
  // autoCorrect = true,
),

dessalines avatar Jul 14 '22 19:07 dessalines

I agree, I also find this to be a bit of a nuissance!

I have looked a bit into it. I found this answer from stack overflow in which it is pointed out that the setting of autoCorrect = false is not going to have an effect on keyboardType.Text, but it will affect keyboardType.Email and a few others.

This is confirmed in the documentation on autoCorrect().

I have tested by changing setting

keyboardType = keybordType.Email,
autoCorrect = false

for both lines (here and here)

It does work! I don't know if this is an appropriate solution, as I don't know whether using the 'Email' type instead of the 'Text' type has any undesirable effects. But hopefully this is helpful.

Kradyz avatar Feb 06 '23 23:02 Kradyz

Thanks! I'll test this to make sure it works as well. Could you comment on that stackoverflow issue, or create a new one, with this answer, for the backspace bug? Its a problem on all my apps that are using jetpack-compose, and there's little documentation about this bug anywhere.

dessalines avatar Feb 10 '23 18:02 dessalines

At least on my phone, this issue actually occurs every time I try to delete more than one character in a word. Also, the autocorrect will sometimes get "stuck" if I try to edit a word in the middle of a sentence and subsequently keep editing that word even though I am just trying to continue typing the sentence.

njmdietrich avatar Jun 17 '23 00:06 njmdietrich

I'm still getting this in Jerboa 0.34 when typing with openboard and with the stock AOSP board, same symptoms as everyone else in here and in this issue: https://github.com/dessalines/jerboa/issues/748. I also have the behavior that njmdietrich mentions where it sometimes deletes a word and starts typing in the middle of my post instead of where my cursor is.

Edit: I'm now using the "Liftoff" app instead, almost solely because of this bug. It's just too frustrating when typing out comments. All the apps feel quite new and immature so I look forward to bouncing between them as they mature and I may return to Jerboa later!

YoteZip avatar Jun 22 '23 17:06 YoteZip

Hello, I think I have this issue, it is very hard to describe and it doesn't happen consistently. When going back to fix a typo of change a word and then bringing the cursor back to end of the text. I type something new, it overwrites the last word where I fixed the typo. As if the cursor was still where I fixed the typo and the keyboard was in "insert mode" sometimes each keypress will overwrite one letter of the previously edited word, sometimes the keypress will overwrite the entire word.

Sometimes it does this 3/4 times in a row, it becomes easier to erase all text from the end back to where the typo was, and then rewrite the entire comment.

I think I will just leave all error my errors in because editing my comments before posting is just too frustrating.

It does happen like 1/3 the time that I edit a comment I think.

shodanx2 avatar Jun 22 '23 20:06 shodanx2

I can confirm both problems with whitespaces lost after hitting backspace and the word removal @shodanx2 mentioned.

MarcoHannemann avatar Jun 27 '23 09:06 MarcoHannemann

Same as described above. It's extremely frustrating and pretty much is a dealbreaker for using Jerboa over the PWA.

Curious if it's just AOSP Keyboard that has the issue (that's all I'll use) or if other keyboards have this problem.

asimons04 avatar Jul 01 '23 21:07 asimons04

Some related stuff i found

https://issuetracker.google.com/issues/221636606

https://gitlab.com/LineageOS/issues/android/-/issues/4429

https://issuetracker.google.com/issues/239471016

MV-GH avatar Jul 04 '23 07:07 MV-GH

@asimons04 Could i get your exact android version, + keyboard. Or from anyone experiencing this I'm trying to reproduce the issue first.

MV-GH avatar Jul 04 '23 08:07 MV-GH

Screenshot_20230704-050245

Gboard Screenshot_20230704-050428

shodanx2 avatar Jul 04 '23 09:07 shodanx2

I am on Lineage for microG 20 (android 13) with the April security update. The keyboard is the AOSP keyboard version 13.

njmdietrich avatar Jul 04 '23 09:07 njmdietrich

@MV-GH

Device 1: OnePlus 3 running LineageOS 18 (Android 9 based) , unknown OpenGapps version, and AOSP keyboard version 9. I do not have an alternate keyboard to test with, but AOSP keyboard behaves as described in this issue when typing text anywhere in Jerboa.

Device 2: Moto G Power (2022) on Android 11 (Stock) and de-Googled best I can. Google Play Services disabled and using AOSP keyboard version 11. Temporarily re-enabling GBoard (Play services remained disabled) and setting that as the default on-screen keyboard, I was able to confirm Jerboa works as expected. AOSP keyboard, though, is as described in this issue.

asimons04 avatar Jul 04 '23 12:07 asimons04

Thanks, I'll see if I can reproduce this

MV-GH avatar Jul 04 '23 12:07 MV-GH

Can confirm for another device: One Plus Nord 2 5G on Android 12. Nothing changed on Google Play Services side. Just installed OpenBoard and using it.

kuro-codes avatar Jul 04 '23 12:07 kuro-codes

Alright can confirm, just installing a OASP keyboard makes it reproducable

MV-GH avatar Jul 04 '23 16:07 MV-GH

Hello, I can confirm that I have the same issue as described in the original post.

Device: Pixel 4A OS: Lineage 20 (Android 13 Based) Keyboard: AOSP

t-391 avatar Jul 06 '23 21:07 t-391

Hello. I also have the same issue as described in the original post.

Device: Xiaomi Redmi Note 11 Pro 5G (veux) OS: SparkOS Vanilla (No GApps) Keyboard: OpenBoard

theshatterstone avatar Jul 09 '23 13:07 theshatterstone

From my testing disabling show correction suggestions does prevent this from happening. For those wanting a immediate solution. image

MV-GH avatar Jul 14 '23 12:07 MV-GH

This issue has been resolved on my end since I last updated.

It was intermittent but happening often.

I have not had the issue at all since updating despite trying to make it happen.

Can anyone else confirm this is also fixed for you in the last update ?

shodanx2 avatar Jul 19 '23 21:07 shodanx2

Jerboa update? Android update? keyboard update?

MV-GH avatar Jul 19 '23 21:07 MV-GH

@shodanx2 I still had this issue. Until just now, when @MV-GH 's solution fixed it. It works for me now, but I needed to disable correction suggestions in OpenBoard (I didn't use them anyways so no big deal). So, thanks, @MV-GH, that fixed it. I'm also running the latest versions of Jerboa and OpenBoard from F-Droid, but the issue didn't resolve itself. It only worked properly after @MV-GH's fix

theshatterstone avatar Jul 19 '23 21:07 theshatterstone

I'm still using gboard, I updated jerboa via fdroid to 0.0.40, it's been fixed since.

shodanx2 avatar Jul 19 '23 22:07 shodanx2

Gboard never had this issue, are you sure?

MV-GH avatar Jul 19 '23 22:07 MV-GH

We might not have had the exact same issue. Mine would replace whole words after I made a correction earlier in the sentence. I would type just one character at end of the sentence, and the last word I modified would disappear entirely. This may be related to my heavy use of swiping.

In anycase, it was doing it very frequently, now it does not do it at all.

shodanx2 avatar Jul 20 '23 04:07 shodanx2

Still happening for me on 0.0.41 (GrapheneOS)

bobdanek avatar Jul 28 '23 00:07 bobdanek

Yeah it is issue with Compose itself, not something we can fix. All we can do is wait for a fix.

MV-GH avatar Jul 28 '23 00:07 MV-GH

Just updated to 0.0.41 and the very first comment I made, the problem came back!

shodanx2 avatar Jul 28 '23 08:07 shodanx2

@shodanx2 I'm using v0.0.41 with OpenBoard and using the fix by @MV-GH and it still works perfectly for me. Have you disabled correction suggestions?

theshatterstone avatar Jul 30 '23 09:07 theshatterstone

I'm using gboard with default settings, (except for adding a language and enabling swipe)

I don't use lemmy much anymore, however, the problem hasn't happenned since last I reported it.

shodanx2 avatar Jul 31 '23 06:07 shodanx2