Helium314 / HeliBoard

Customizable and privacy-conscious open-source keyboard
Apache License 2.0
2.44k stars 97 forks source link

Duplicate first character when typing in specific text boxes #662

Open ghost opened 7 months ago

ghost commented 7 months ago

Describe the bug Sometimes, when starting typing in the first letter of the text you're writing, it will double click the letter on for example you'll get "OOf Course!", "TTake out the trash"

To Reproduce Sadly, I was unable to find a way to reproduce it, it just happens sometimes and it's not related to me double tapping the button because that would not make both letters uppercase

Expected behavior 1 letter typed in

App version 1.0 and 1.2

Device (please complete the following information): Xiaomi 11T Pro

Android 13

Additional context I did testing only on russian layout and I'm not sure if the issue appears in other languages, so I'm sorry about the little testing I was able to do.

starkgate commented 7 months ago

I have a very similar issue when typing on a website called wanikani. When typing on that website, text is automatically converted from romaji (latin alphabet) to japanese hiragana (see the duplicated first character in the first screenshots). Sometimes the first letter is duplicated. I also couldn't find a way to consistently reproduce it.

Screenshot_20240411_202400_Firefox Nightly Screenshot_20240411_202412_Firefox Nightly

ghost commented 6 months ago

I have realized that it's only happening in Telegram for me, so I guess only specific input fields trigger that issue. How interesting!

starkgate commented 6 months ago

Interesting. Here's the HTML code related to the text field on the website I mentioned:

<form data-quiz-input-target="form" autocomplete="off">
        <input class="quiz-input__input" autocomplete="off" autocapitalize="none" autocorrect="off" spellcheck="false" id="user-response" name="user-response" placeholder="答え" type="text" data-quiz-input-target="input" autofocus="" enabled="true" data-wanakana-id="17137703987021" lang="ja" data-previous-attributes="{&quot;data-wanakana-id&quot;:null,&quot;lang&quot;:null,&quot;autoCapitalize&quot;:&quot;none&quot;,&quot;autoCorrect&quot;:&quot;off&quot;,&quot;autoComplete&quot;:&quot;off&quot;,&quot;spellCheck&quot;:&quot;false&quot;}" data-wanakana-bound="true">
        </input>
</form>
starkgate commented 5 months ago

@variety754 Can I suggest renaming the issue to something like "Duplicate first character when typing in specific text boxes"? Hopefully this will make it more likely for anyone to pick up the issue. It's the only thing preventing me from completely switching to HeliBoard so I'm really hoping to see it addressed.

ghost commented 5 months ago

Done

ghost commented 5 months ago

Honestly I already completely switched to it regardless of this and a few other issues, I really like it

Helium314 commented 5 months ago

For reference: the behavior is improved in 2.0-beta2, but the issue is not yet fixed: https://github.com/Helium314/HeliBoard/issues/225#issuecomment-2165099736