Skip to content
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

Backspace doesn't work correctly if input_type is set to "number" #8232

Open
DexerBR opened this issue May 3, 2023 · 2 comments
Open

Backspace doesn't work correctly if input_type is set to "number" #8232

DexerBR opened this issue May 3, 2023 · 2 comments

Comments

@DexerBR
Copy link
Contributor

DexerBR commented May 3, 2023

Software Versions

  • Python: 3.9.9 / 3.8.9
  • OS: Ubuntu 20.04 (WSL2)
  • Kivy: 2.1.0 / master
  • Kivy installation method: through buildozer (kivy==2.1.0, kivy==master)
  • Buildozer: 1.5.0
  • python-for-android: v2023.02.10
  • Device: Amazon Fire Tablet 8 10th gen

Describe the bug

When setting the input_type to number ( in the described environment), the backspace stops working correctly if there is a initial text. It seems that the starting character count is stuck, and in some cases this stuck character count seems to increase or decrease.

I also tested the datetime and tel options, and the behavior is the same.

Expected behavior
Backspace should work correctly

To Reproduce

from kivy.app import App
from kivy.lang import Builder


KV = """
BoxLayout:
    TextInput:
        text: "12"
        input_type: "number"
"""


class TestApp(App):
    def build(self):
        return Builder.load_string(KV)


if __name__ == "__main__":
    TestApp().run()

Code and Logs and screenshots

record_20230503_181003_033514.mp4
@misl6
Copy link
Member

misl6 commented May 3, 2023

Yeah, I guess we can add this issue to #8226 "related issues" long list.

@afriddev
Copy link

Upgrade The version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants