Here is one way to do it. Let's say this is your mxml:
 
<mx:TextInput id="txt" width="200" keyDown="txtKeyDownHandler(event)"/>
 
Then your keydown handler would be:
 
// Waiting for return key
private function txtKeyDownHandler(event:KeyboardEvent):void
{
    if (event.keyCode == 13)
    {
        // do something
    }
}

Reply via email to