Hi Alex, Thanks for the help. Now it is working.
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Try listening to systemManager instead of application. > > > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Subeesh > Sent: Wednesday, May 07, 2008 11:16 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] ComboBox KeyBoard Issue > > > > Hi All, > > I am having this strage problem . This may be simple . This is the > case. i have added a keyboard event listener for the application. > when i have focus on any of the controls like TextInput, DateField , > i can listen for the keyboard event . But when the focus is on the > ComboBox , the event cannot be trapped . I copied the code below, i > used for testing > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml > <http://www.adobe.com/2006/mxml> " > layout="vertical" applicationComplete="onInit()" > > <mx:Script> > <![CDATA[ > import mx.controls.Alert; > private function onInit():void > { > application.addEventListener(KeyboardEvent.KEY_DOWN,onKeyDown); > } > private function onKeyDown(event:KeyboardEvent):void > { > } > ]]> > </mx:Script> > <mx:TextInput/> > <mx:ComboBox /> > </mx:Application> >