Skip to main content
Known Participant
November 18, 2012
Question

TextInput duplicating letters

  • November 18, 2012
  • 5 replies
  • 1242 views

I am using FB 4.6 to develop an App for both Android and iOS. I have run into a situation with text input fields where on some occassions, when pressing a single letter will actually add multiple characters of the same letter to the text input field. When I attempt to add the next letter, it will duplicate the existing text in the text field and add it on to the text. For example, entering the word, "Adobe" may end up looking something like "AAddAAddoobbAAddoobbee".

Here's an example of one of my input fields:

TextInput id="email_txt" left="20" top="47" width="316" prompt="Player's Email" restrict="^'""

                 focusIn="email_txt_focusInHandler(event)" focusOut="email_txt_focusOutHandler(event)"

                 skinClass="spark.skins.mobile.StageTextInputSkin" softKeyboardType="email"

Thanks, in advance, for any and all replies.

This topic has been closed for replies.

5 replies

Participating Frequently
December 17, 2012

Did you ever find a solution for this? Im getting the same issue when debugging on an android device. I cant find any other posts besides yours here and on stackoverflow so I guess we are the only two people who have this problem.

Thanks,

Jason

sleblangAuthor
Known Participant
December 18, 2012

Which skinClass are you using? I switched to spark.skins.mobile.TextInputSkin and that seems to have fixed this issue, however I don't believe I am getting the full functionality of properties like, softKeyboardType, etc.

HTH

Participating Frequently
December 18, 2012

Yeah, was using the default skin for the mobile theme. It seems that when I had the softkeyboardtype in there it would do the character repeating. I havent tested it but basically I just removed all the properties I set and started from a barebones textinput element. Mine was happening on a login form and I noticed that the password field did not repeat so then I figured I start from scratch.

So, anyone else having this problem just start with a basic textinput tag with an id (or not) and start to add your properties one by one.

If anyone definitivley finds the property (or combination of properties) that is the culprit, please post here so others can find it.

sleblangAuthor
Known Participant
November 18, 2012

Here's an example: