简体   繁体   中英

Android 4.4 backspace not modifiying default text in a Kivy TextInput

Before upgrading my nexus 4 from Android 4.3 to 4.4(Kitkat) i could erase whith the BackSpace button a default text that i was casting on load in a TextInput. Strangely, now i cannot delete the text of this TextInput while using the default keyboard (the Google keyboard), but works perfectly with other keyboards that are available on Google Play. I don't know if it is an OS issue or my code needs modification or an upgrade to Kivy might be required.

my code looks as follows (in kv):

TextInput:
    id:txt_from_mail
    font_size: root.height * .044
    size_hint: (None,None)
    size: root.width*.65,root.height*.0833
    background_color:(1,2,0.7,0.9)
    foreground_color: (.2,.4,.5,.9)
    padding_y:self.height*.12
    text:"YourGmail@gmail.com" # this is the text that i cannot delete or modify
    multiline:False
    on_focus:root.clear_mail_feedback()

and in Python the function looks like that:

def clear_mail_feedback(self):
    self.the_mail_feedback.text="" # this is a label in my form that gives text feedback to users

EDIT : i can also add other findings. typing text in the TextInput, put the application in the background, call back the application, and try to edit your text, you cannot! could it be an issue with latinIME? with native coding??? clueless...

This is a known issue with kitkat, kivy. There is a temp hack/fix here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM