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

New Developer
Posts: 29
Registered: ‎09-29-2008
My Device: Not Specified

Key codes of blackberry



what is the keycode of key (like back) beside the track ball ?  It's look like back


Dose any body know  

Posts: 17,024
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Key codes of blackberry

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
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Key codes of blackberry

Note that to use Characters.ESCAPE when checking a keycode you will need to extract the key from the key code, using Keypad.  Sample code follows:


char key = Keypad.key(keycode);

if ( key == Characters.ESCAPE ) { ...


However if your checking is in something like a keyChar method, the actual key is supplied.