You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Jérôme Gillard (JIRA)" <ji...@apache.org> on 2013/11/14 14:53:21 UTC

[jira] [Created] (FLEX-33905) TextInput component with restrict property is not working with Samsung default keyboard

Jérôme Gillard created FLEX-33905:
-------------------------------------

             Summary: TextInput component with restrict property is not working with Samsung default keyboard
                 Key: FLEX-33905
                 URL: https://issues.apache.org/jira/browse/FLEX-33905
             Project: Apache Flex
          Issue Type: Bug
          Components: Mobile: SoftKeyboard, Mobile: Text, Spark: TextInput
    Affects Versions: Adobe Flex SDK 4.6 (Release)
         Environment: Samsung Galaxy SII, running Android 4.0.4 with it's Samsung default Keyboard. 
Flex 4.6.0 AIR 3.8
            Reporter: Jérôme Gillard


Problem Description: On a Samsung Galaxy SII, running Android 4.0.4 with it's Samsung default Keyboard, if the restrict attribute is set on a TextInput, the resulting text of user's input is not at all what he gets.
The text is partially overwritten with suggestions, or the prefix repeated on every char (making the text exponentially growing)

Applying spark.skins.mobile.TextInputSkin doesn't solve the problem.
Moreover, when TextInputSkin if applied, the softkeyboard doesn't show up at the first focus in event.

See attached project to reproduce.

Steps to Reproduce:

1 - Install attached project
2 - In each visible TextInput
3 - hit those letters on the softKeyboard: "a", "b", "c".
4 - Select "abc" suggested by Samsung's keyboard
5 - Repeat step 3.
6 - Repeat step 4, your goal is to write "abc".
7 - See what you have inside TextInputs


Actual Result:

- Default TextInput, with default Skin: "abc abc" -> OK
- Restricted TextInput with default Skin: "abcabcabcabcabcabc" -> totally NOK
- Default TextInput with TextInputSkin: "abc abc" -> OK
- Restricted TextInput with TextInputSkin: "ababc" -> NOK, one "C" is missing!


Expected Result:

- In all TextInputs: "abc abc"

Any Workarounds:

Write word char by char. 

Attached project can be downloaded here: https://bugbase.adobe.com/index.cfm?event=file.view&id=3605590&seqNum=1&name=samsungpredictivetext%5Fbug%2Efxp
Or simply by trying this source:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" 
		xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView">
	<fx:Declarations>
		<!-- Place non-visual elements (e.g., services, value objects) here -->
	</fx:Declarations>
	
	<s:layout>
		<s:VerticalLayout/>
	</s:layout>
	
	<s:Label text="Default TextInput with default Skin"/>
	<s:TextInput width="100%" />
	
	<s:Label text="Restricted TextInput with default Skin"/>
	<s:TextInput width="100%" restrict="0-9a-f" />
	
	<s:Label text="Default TextInput with TextInputSkin"/>
	<s:TextInput width="100%" 
				 skinClass="spark.skins.mobile.TextInputSkin"/>
	
	<s:Label text="Restricted TextInput with TextInputSkin"/>
	<s:TextInput width="100%" restrict="0-9a-f"
				 skinClass="spark.skins.mobile.TextInputSkin"/>
	
</s:View>



--
This message was sent by Atlassian JIRA
(v6.1#6144)