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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
lynxgeek
Posts: 255
Registered: ‎05-24-2010
My Carrier: developer

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.

Please use plain text.
Developer
peter_strange
Posts: 17,632
Registered: ‎07-14-2008

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?

Please use plain text.