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
Developer
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 4.3.0.1r and the 8120 simulator, if it makes a difference.

Developer
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..