简体   繁体   English

Adobe AIR for Mobile:默认的三星键盘文本输入错误

[英]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+. 我仅在运行Androi 4+的三星手机上遇到一个奇怪的错误。 With Adobe AIR, every textInput is not suitable for use. 使用Adobe AIR,每个textInput都不适合使用。 The beginning of the entered word is repeated on every char input. 输入的单词的开头在每个char输入上重复。 Here is the behaviour: 行为如下:

When I enter "ABC" The input text is "AABAABAABAABAABAABC" (or sometimes known words from the dictionary) 当我输入“ ABC”时,输入文本为“ AABAABAABAABAABAABC”(或有时是词典中的已知单词)

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: textInput是这样声明的:

<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. 即使在运行Android 4.1,旧版本或其他制造商的HTC上,其他设备也运行良好。 This bug has also been seen on Swype keyboards (third-party system keyboards). 在Swype键盘(第三方系统键盘)上也可以看到此错误。

Do you have a workaround to make it work? 您有解决方法来使其正常工作吗?

Thanks 谢谢

EDIT: The worst behaviours are caused by the restrict property. 编辑:最严重的行为是由restrict属性引起的。 Without that, the text input is still bugged, but less. 没有这个,文本输入仍然是错误的,但是更少。 I filed those bugs at bugbase.adobe.com, please vote for it: 我将这些错误提交到bugbase.adobe.com,请对其投票:

  1. TextInput's restrict attribute makes user interaction totally unusable TextInput的strict属性使用户交互完全无法使用
  2. TextInput's autoCorrect attribute has no effect TextInput的autoCorrect属性无效
  3. TextInput component ignores autoCapitalize, autoCorrect, and softKeyboardType properties when setting a custom skin 设置自定义外观时,TextInput组件会忽略autoCapitalize,autoCorrect和softKeyboardType属性

Regarding the mobile textInput, Adobe has really screwed us with Flex 4.6. 关于移动textInput,Adobe确实用Flex 4.6来欺骗我们。 Set the skin class to spark.skins.mobile.TextInputSkin and you should be good to go. 将皮肤类设置为spark.skins.mobile.TextInputSkin ,您应该会很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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