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
Posts: 29
Registered: ‎09-29-2008
My Device: Not Specified

Key codes of blackberry

Hi

 

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

 

Dose any body know  

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

Re: Key codes of blackberry

Characters.ESCAPE
----------------------------------------------------------
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
Highlighted
Developer
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.