Skip to content

Commit f9830f6

Browse files
committed
PopField upgraded
1 parent a7aecf8 commit f9830f6

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

popForm/PopField.as

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,16 @@
189189
}
190190

191191
}
192+
193+
public function onEnterPressed(func:Function):void
194+
{
195+
if(nativeKeyBoard!=null)
196+
{
197+
nativeKeyBoard.onEnterPressed(func);
198+
}
199+
}
192200

193-
public function setUp(tagName:String,defaultText:String,KeyBordType:String = SoftKeyboardType.DEFAULT,isPass:Boolean = false,editable:Boolean = true,isAraic:Boolean=true,numLines:uint = 1,color:uint=1,frame:uint=1,maxChar:uint=0,otherOptions:Array=null,deleteDefautlText:Boolean=false,activateRadioSwitcher:Boolean=false,returnKey:String=ReturnKeyLabel.DEFAULT,onTypedFunction:Function=null,justShowNativeText:Boolean=false,multiLineTag:Boolean=false,justify:Boolean=true):void
201+
public function setUp(tagName:String,defaultText:String,KeyBordType:String = SoftKeyboardType.DEFAULT,isPass:Boolean = false,editable:Boolean = true,isAraic:Boolean=true,numLines:uint = 1,color:uint=1,frame:uint=1,maxChar:uint=0,otherOptions:Array=null,deleteDefautlText:Boolean=false,activateRadioSwitcher:Boolean=false,returnKey:String=ReturnKeyLabel.DEFAULT,onTypedFunction:Function=null,justShowNativeText:Boolean=false,multiLineTag:Boolean=false,justify:Boolean=true):PopField
194202
{
195203

196204
var Y0:Number ;
@@ -370,6 +378,8 @@
370378
this.addEventListener(MouseEvent.CLICK,switchRadioButton);
371379
this.removeEventListener(MouseEvent.CLICK,editThisText);
372380
}
381+
382+
return this ;
373383
}
374384

375385
/**Return true if the field is in password mode*/

0 commit comments

Comments
 (0)