nowinandroid icon indicating copy to clipboard operation
nowinandroid copied to clipboard

[Bug]: Using backspace in in search removes spaces in random places

Open VerdommeMan opened this issue 2 years ago • 5 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is there a StackOverflow question about this issue?

  • [X] I have searched StackOverflow

What happened?

When trying to erase text in the search bar it removes spaces in random places.

https://github.com/android/nowinandroid/assets/41597036/fd204f34-ff01-4dad-b42d-1b9a6ff95d2a

I am using android 11 with AOSP keyboard.

Relevant logcat output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

VerdommeMan avatar Jul 05 '23 09:07 VerdommeMan

This seems like an issue with the softkeyboard of your emulator. I've tested it on 2 devices and was not able to reproduce the issue. There is no custom parsing on the text input (SearchTextField). Also, it seems like your keyboard tries to auto-correct the content (which might explain your issue) as you can see the underlined words.

SimonMarquis avatar Jul 13 '23 18:07 SimonMarquis

I can reproduce this on all AOSP builds while using the AOSP stock keyboard.

I have disabled text correction and it still does it. It does not seem to happen in other apps, only in this app.

https://github.com/android/nowinandroid/assets/41597036/13b8b0e2-245d-41a5-ae9b-060a81844fe9

This was on a android 12 default image image

VerdommeMan avatar Jul 14 '23 12:07 VerdommeMan

I can confirm that this is an issue with the software keyboard. The issue probably happens because of the spellchecker. Here is a related issue from Google support: Underline appears under text being typed. So, @VerdommeMan could you please try turning off the spellchecker from the Settings and see if it works?

RivanParmar avatar Aug 01 '23 19:08 RivanParmar

Thanks for noting this, I created an upstream issue here, https://issuetracker.google.com/issues/294102838. I don't think this is due to anything we're doing in Now in Android since I could reproduce with a very basic text field in the AndroidX demo project.

alexvanyo avatar Aug 01 '23 20:08 alexvanyo