Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 42
Registered: ‎08-30-2012
My Device: PlayBook
My Carrier: Aircel
Accepted Solution

My KeyBoard actionlistener event is not working correctly

Hi everyOne,


In my app iam generating the output while the user is typing the data in text input field, for that iam adding actionlistener to keyboard,

the problem is i did nt get the data while typing i need to wait for some time or need to press enter or esp keys


wts the prbelm can any one tell me. here is my code

searchInput.prompt = "Search...";		searchInput.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);

private function keyDownHandler(event : KeyboardEvent) : void{
//here getdatabykeyword is my database method and on succesfullyretrived is display data method 
no problems with these two methods i tested those.


Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: My KeyBoard actionlistener event is not working correctly

Try listening to Event.CHANGE, instead of the keyboard event for the text input control. Standard TextInput responds to text changes. This assumes that the QNX TextInput was implemented this way and you are using that control.

If you add a trace(...) to your callback function, are you saying that it is not being triggered with key down events?
Posts: 42
Registered: ‎08-30-2012
My Device: PlayBook
My Carrier: Aircel

Re: My KeyBoard actionlistener event is not working correctly

Thank you very much sir,
event.change is working according to my need
thanks a lot