Welcome!

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

Java Development

Reply
Regular Contributor
benabouttown
Posts: 82
Registered: ‎10-28-2010
My Device: Not Specified

keyChar not firing - is autosuggest eating it ?

 

 

I am very new to this, and managed to work out a few things myself, but I have come to a road block.

 

I needed to create a bordered text box, so I used the custom text code (provided by http://blackberry-tips-bikas.blogspot.com/2009_07_01_archive.html). Worked a treat, but then I needed validate each key that was pressed.

 

So I implemented the keyChar method for both the CustomTextBox and the inner EditField, but the event isn’t getting these method. I did a break point and placed system outs all over the code to track it, but no. not called.

 

Further more I have this blasted AutoComplete or AutoSuggest popping up.

 

I did a search, and couldn’t see how to turn it off, mainly people wanting it on, but it seems that it might be eating my characters.

 

 

Can anyone advise on how to turn off AutoSuggest on a TextField and suggestion for doing character validation?

 

Please use plain text.