Unexpected text input occurs when switching between input fields due to soft keyboard autocorrect


before details, have created bug base entry can found here: https://bugbase.adobe.com/index.cfm?event=bug&id=3428761

 

if people confirm behavior , / or upvote issue can see resolved. here summary of problem (copied bug base entry).

 

description

problem description: when typing in 1 textfield input, switching textfield input, autocomplete text previous input inserted second textfield. problem observed on android 4.2, not occur on 2.3. appears affect versions of adobe air (3.3, 3.4, 3.5).

 

 

steps reproduce: see code below.

 

1) type 'apple' in first textfield
2) click directly in second textfield (ensure softkeyboard not close) , type 'orange'

 

 

actual result: second input field display 'appleorange'.

 

 

expected result: 'orange' of course.

 

 

any workarounds: no. critical problem app contains more 1 input field.

 

test configuration

package
{
import flash.display.sprite;
import flash.display.stagealign;
import flash.display.stagescalemode;
import flash.system.capabilities;
import flash.text.textfield;
import flash.text.textfieldtype;
import flash.text.textformat;

 

public class autocomplete extends sprite
{
public function autocomplete()
{
super();

 

stage.align = stagealign.top_left;
stage.scalemode = stagescalemode.no_scale;

 

var textfield1:textfield = addchild(new textfield()) textfield;
var textfield2:textfield = addchild(new textfield()) textfield;

 

textfield1.defaulttextformat = textfield2.defaulttextformat = new textformat(null, 0.25 * capabilities.screendpi);
textfield1.text = textfield2.text = "";

 

textfield1.x = textfield2.x = 0.1 * stage.stagewidth;
textfield1.width = textfield2.width = 0.8 * stage.stagewidth;
textfield1.height = textfield2.height = 0.375 * capabilities.screendpi;
textfield1.border = textfield2.border = true;
textfield1.background = textfield2.background = true;
textfield1.backgroundcolor = textfield2.backgroundcolor = 0xeeeeee;
textfield1.type = textfield2.type = textfieldtype.input

 

textfield1.y = 0.1 * stage.stagewidth;
textfield2.y = textfield1.y + textfield1.height * 1.5;

 

}
}
}



More discussions in AIR Development


adobe

Comments

Popular posts from this blog

Joomla 3.3 Installation Error message - Joomla! Forum - community, help and support

Multilanguage infinite redirect loop error. - Joomla! Forum - community, help and support

trim media limit reached