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

Posts: 32
Registered: ‎09-09-2009
My Device: Not Specified

eventinjection using alt and escape



I am using the following code


EventInjector.KeyCodeEvent eEscDown = new EventInjector.KeyCodeEvent(EventInjector.KeyEvent.KEY_DOWN, ((char)Keypad.KEY_ESCAPE), 
        KeypadListener.STATUS_ALT, 0);


This code is called when i click a custom menuItem. This event injection generates the Switch Application screen.

It works in 8130, 9530 simulator. But when run in 8300 and 8520 simulator it generates both switch Application screen and the full menu in the middle on top of trackball.


How to fix this problem? I don't want the menu to appear.