简体   繁体   中英

Adobe AIR for Mobile: default Samsung keyboard text input bug

I am experiencing a strange bug only on Samsung mobile phones that are running Androi 4+. With Adobe AIR, every textInput is not suitable for use. The beginning of the entered word is repeated on every char input. Here is the behaviour:

When I enter "ABC" The input text is "AABAABAABAABAABAABC" (or sometimes known words from the dictionary)

It seems to add the whole content of the text input on each key press. Making the words repeated several times. It also seems to be an autosuggestion (from the phone's dictionary) related bug.

The textInput is declared this way:

<s:TextInput id="tin" autoCapitalize="all" autoCorrect="false" 
             maxChars="19" restrict="0-9A-Za-z_\-" width="100%" 
             itemCreationPolicy="immediate"/>

Others devices are just running fine, even on HTC running Android 4.1, older versions or others manufacturers. This bug has also been seen on Swype keyboards (third-party system keyboards).

Do you have a workaround to make it work?

Thanks

EDIT: The worst behaviours are caused by the restrict property. Without that, the text input is still bugged, but less. I filed those bugs at bugbase.adobe.com, please vote for it:

  1. TextInput's restrict attribute makes user interaction totally unusable
  2. TextInput's autoCorrect attribute has no effect
  3. TextInput component ignores autoCapitalize, autoCorrect, and softKeyboardType properties when setting a custom skin

Regarding the mobile textInput, Adobe has really screwed us with Flex 4.6. Set the skin class to spark.skins.mobile.TextInputSkin and you should be good to go.

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