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

Posts: 272
Registered: ‎05-24-2010
My Device: DEV Alpha C & BB 9720
My Carrier: Idea and Airtel

Stop Custom Fied vertical Focus when i prees Enter

I have a custom Field which implements Field Change listener


when i press enter i am calling  the fieldchangenotify()


when this happens the Focus is moving to the next Field in the screen ..

i want to stop the Focus to move when i press ENTER key ..


any suggestions..


Thanks Regards

Yakub Pasha.

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Stop Custom Field vertical Focus when I press Enter

Override keyChar and return true when the Enter is pressed.


I didn't actually think you could detect Enter from a FieldChanged event.  Can you confirm that is what you are doing?