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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Posts: 41
Registered: ‎08-01-2008
My Device: Not Specified
Accepted Solution

Injecting key events but can't find what maps to the BB key?

I'm trying to inject a key event to simulate the user having pressed the Menu key - ie the one with the BB logo on, which is triggered by pressing Insert on the simulator. I tried using Keypad.KEY_APPLICATION (0x15), Keypad.KEY_MIDDLE (0x13), Keypad.KEY_MENU (0x1002) and there is no result from injecting these keys at all. Every other key I try to inject seems to work fine. Is there some other constant I should be using?


Using JDE version and the 8120 simulator, if it makes a difference.

Posts: 41
Registered: ‎08-01-2008
My Device: Not Specified

Re: Injecting key events but can't find what maps to the BB key?

Never mind, I got this to work by using a KeyCodeEvent instead of a KeyEvent..