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
New Developer
New Developer
Posts: 16
Registered: ‎08-03-2009
My Device: Not Specified

ListField item to next screen on pressing enter key


Hi all,

I have screen with ListField component.
ListField is displaying 10 records.
I want to show the next screen when the user is pressing the enter key or space key after selecting one of the row in ListField.

Currently i am using the drawListRow() function.

What is best procedure to show the next screen to the user when he is selecting one of the row in the ListField.
Can you give some sample code for this.

There is any functions available to do this thing.




Highlighted
Developer
Posts: 16,750
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: ListField item to next screen on pressing enter key

first, overwrite keydown or keychar to handle the pressed key.
if an object is selected in the listfield push a screen and give it the selected object as a parameter.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter