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 Contributor
Posts: 4
Registered: ‎04-19-2010
My Device: BOLD
My Carrier: GSM
Accepted Solution

KeyBoard not work in Storm

Hello guys !


The scene is, I have areated an application in 4.2 and I want my application to be run in every BB devices. It works very fine in every device except Storm.


When I deploy the app in Storm, the compatibility mode is TRUE by default and in this scenario I am not able to fetch any key events. Application works very fine in compatibility mode is FALSE.


anybody have any clue..??

Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: KeyBoard not work in Storm

I am not sure what you mean by key events. 


Are you talking about KeyUp and keyDown and so on?  If that is so, then I suggest you try your Application in a 8100 or 9100 or 8220.  I suspect it won't work on these devices - in which case the problem you are seeing is a result of SureType, implemented because of the reduced keyboard.


If this is not the problem you are seeing, can you clarify what you mean by key event?  How is your application capturing this?

New Contributor
Posts: 4
Registered: ‎04-19-2010
My Device: BOLD
My Carrier: GSM

Re: KeyBoard not work in Storm

Hi Peter ! Thanks for your response. Smiley Happy


Yes. KeyEvents means KeyUp, KeyDown etc. I have checked my app in all devices including 8100 9100 and it works fine with them.


I am using JDE 4.2 to build my app and I want to run it on 9550 (Storm) device. Let me post the code here:



package com.sample;

import net.rim.device.api.system.KeyListener;
import net.rim.device.api.system.KeypadListener;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.TouchEvent;
import net.rim.device.api.ui.component.ButtonField;
import net.rim.device.api.ui.component.EditField;
import net.rim.device.api.ui.container.MainScreen;

public class HomeScreen extends MainScreen implements KeyListener , KeypadListener{
    EditField text1 ;
    ButtonField button ;
    public HomeScreen(){
        text1 = new EditField(Field.EDITABLE | Field.FIELD_HCENTER | Field.FIELD_VCENTER | Field.FOCUSABLE);
        button = new ButtonField("Ok", Field.FIELD_HCENTER | Field.FIELD_VCENTER | Field.FOCUSABLE){
            protected boolean touchEvent(TouchEvent message) {

                System.out.println("touchEvent() " + text1.getText());
                return super.touchEvent(message);
     * @see super.keyChar(char c, int status, int time)
    public boolean keyChar(char c, int status, int time) {
        return super.keyChar(c, status, time);

    public boolean keyDown(int keycode, int time) {
        return super.keyDown(keycode, time);
    public boolean keyRepeat(int keycode, int time) {
        System.out.println("HomeScreen.keyRepeat()" + keycode);
        return super.keyRepeat(keycode, time);
    public boolean keyStatus(int keycode, int time) {
        return super.keyStatus(keycode, time);
    public boolean keyUp(int keycode, int time) {
        return super.keyUp(keycode, time);
    protected boolean trackwheelClick(int status, int time) {
        // TODO Auto-generated method stub
        return super.trackwheelClick(status, time);

 I have also put the print statements for my debugging purpose but when i click any key, it is not calling any of the method above.

or is it a bug in Storm?


New Contributor
Posts: 4
Registered: ‎04-19-2010
My Device: BOLD
My Carrier: GSM

Re: KeyBoard not work in Storm

Hey Guys..I come to know that its a bug in Storm device. I have checked it on jira too where somebody have already locked the bug. So for the time being, I am marking this post as a solution so that the person who looking for the same can save their time.


We should wait for the solution from RIM guys.