keyCharUnhandled & BlackBerry menu button

Hello

I am trying to replace the function Keypad.ESCAPE default, and I use the following code:

protected boolean keyCharUnhandled(char c, int status, int time) {
    switch (c) {
    case Keypad.KEY_ESCAPE:
        System.out.println("Escape button pressed");
                // do something here, and then exit.      System.exit(0);
        return true;
    default:
        return false;
    }
}

This method is in a class that extends MainSreen. I had to overide keyCharUnhandled because there is an entry in the main field, and if I replace keyChar in the class, then the keyChar on the editfield will not be called (or at least that's what I thought this happened)

The problem is, when I use this approach (overloaded keyCharUnhandled), it seems that it cannot detect the BlackBerry menu button. How can I fix it?

You can substitute keychar safely if you call super instead of return false

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Storm / buttons click does not... (open the Menu)

    Hello

    wrote a little app for the storm of im.

    If I click on a button in the application, the storm comes to open the Blackberry Menu (Simulator with 9000 works fine)

    What I'm doing wrong here?

    EventHandler:

    FieldChangeListener Flistener = new FieldChangeListener() {
                public void fieldChanged(Field field, int context) {
                    ButtonField button = (ButtonField) field;
                    /*check which button...*/
                    if (button.getLabel() =="create Playlist"){
                        UiApplication.getUiApplication().pushScreen(new PlaylistScreen());
                    }
                }
            };
    

    Button:

    /*Display Buttons for create...*/
            ButtonField createButton = new ButtonField("create Playlist", ButtonField.FIELD_HCENTER);
            createButton.setChangeListener(Flistener);
            add(createButton);
    

    Kind regards

    dognose

    Oh, sry has completely forgotten this post...

    Well, I managed to solve this problem, the Solution was, that I had to add the

    ButtonField.CONSUME_CLICK
    

    property to the Style of field button, like this:

    ButtonField Button1 = new ButtonField("Button that consumes Click",ButtonField.CONSUME_Click);
    add(Button1);
    

    Thanks for your replies anyway.

    dognose

  • Option of 'Options' of the Smartphones from blackBerry in the BB Menu button doesn't work is not on the Torch 9800

    Whenever I select 'Options' from the drop of the BB Menu button on my Torch 9800, the screen flashes, then back to my home screen. It has been so for a long time (almost a year) and I think that there is a permission that has been disabled inadverdently. It does work if I use the theme BB6 native or other that I downloaded. Anyone know how to make 'Options' to the option to start working again?

    Hi randynjaimie,

    Try to back up your data using the BlackBerry® Desktop Software and perform a clean reload of your BlackBerry® Device Software.

    For more information, see the following article. How to perform a clean reload of the BlackBerry Device Software for Windows. www.BlackBerry.com/BTSC/kb11320
    Please test to make sure that the problem has been resolved before restoring all the data from your backup file.

    I hope this helps.

  • BlackBerry Smartphones Menu button does not work

    A few weeks ago the seer of the call back button and went out. She came back a day later. These same two buttons are out this morning and now the menu button does not work correctly. When I hit him, he types "jk" in the search menu. A battery pull did not help

    So I played with him and I pulled the plastic that covers the button and it moves a little and now the menu button works.

  • BlackBerry Smartphones Menu button not working/no applications on desktop

    OK, I feel really stupid.  I've been messing around with my new BB, and I did something to make sure I can't get the menu I had before come back.  At this point, I don't know even how I managed to do it, but now when I turn on my phone, there is no icons on this subject either.  I realized that if I hit the Alt + ESC keys, I can bring up a bar with a few icons.  But not all of them.   If I hit the Menu button, nothing happens.  Anyone know how I can get it back to work?

    At this point, I'm so confused, I don't know what to do! Normally, I'm pretty good with electronics, but I can't in the menu options, so I am quite confused.

    Any help would be appreciated!

    No, they're all here. Just the icons. I ended up taking it to a Verizon Wireless store and they gave me a new. They said they had never seen anything like this before.

    ... apparently I had a defective.

    Thank you very much for the help!

  • BlackBerry smartphones HELP! I lost all my application icons and the menu button does not work!

    I don't know what I did.  All the application icons are moved from the home page.   The menu button does nothing. The trackball does not have anthing. The only thing on the screen is the time, date, battery, new mail envelope, signal and volume. I pulled the battery and it has no effect. I don't know what to do. Help!

    Hey, JSammy.  I had mine works again with the help of someone from another site.  Here's what you need to do: press the green call button, then the menu button.  Select options, then on options General, highlight "dial from homescreen" and the value. Save and exit. Now on your home screen, press "O".  After that, the General menu options will come.  Choose the option 'theme' and choose a different theme or return to the default value.  This should be all your application icons to reappear.  After doing all this make sure you go back to reset the "dial" since the homescreen on 'yes '.  I hope it works for you.

  • Problems of blackBerry Smartphones with the BBkey (also known as the menu button)

    Sometimes when I'm in an application and want to click on one of the list of the menu items (for example, delete), when I click on the menu button, which appears are some of the icons on the home page.  (I'm really tired of looking at this little Penguin...).  If I persist, I can usually get the pop-up menu option, but it's boring.  I'm sure it's a software problem.  I had this problem after a while on my first lap.  I had to replace the one because of other problems.  I used the switch device Wizard to transfer everything, so I guess he also transferred everything that is causing this issue.

    Everyone knows about this problem?  Any ideas on what to do?  I don't want to reinstall the OS - I'd rather upward with the problem.  Thank you.

    Liz

    Hi again!

    The BBKey/Menu button has two functions.

    (1) to bring up a context menu of the application, you are

    (2) to bring up the Ribbon app-switcher (a list of all your applications in the course of execution so that you can change quickly from a different application...)

    The difference is how long you hold down the key. For 1, it is a support and quick release. For 2, it is down. Sometimes it gets bad, but with practice, you'll be able to get what you want most of the time (not 100% but... I always get a wrong result sometimes).

    Hope that helps!

  • How will I know if a blackerry version has the menu button?

    Hello

    I'm working on a Blackberry app, we use the menu button but I noticed some versions of blackberry (like 8700 s...) don't function of this key. Is it possible to know a particular version of Blackberry features this key?

    Thanks in adance.

    I guess you need to do a couple of models that do not have the menu button (87xx, 6xxx, 7xxx) from the list. All the new models have the menu key, although this may change in the future...

  • How remove < empty Menu > when click on the menu button?

    Hello

    In my makeMenu() application method, I use menu.deleteAll () to remove all of the default menus. If I run this code in 9530 (storm Simulator), it shows only to see the keyboard and button application menu, it's good.

    But if I run the code in other simulators it shows .

    Where the focus is anywhere in the screen, it shows the empty menu when I click on the menu button. I need to remove this also.

    What I want, if I click on the menu button, it should not show anything (means it should not show , but in the storm if I click on the menu button, it should show (show the keyboard application and switch).)

    It is anyway to solve this problem...?

    Thank you

    MINDUS

    You can use the DeviceInfo class to determine the model number of BlackBerry and then return false in your keyDown method.

  • Smartphones blackBerry menu key to protect the BB app is not working

    Hi guys,.
    BlackBerry Protect app menu option does not work, after typing in the bkackberry protect app in the mobile and iff we touch menu it shows settings, backup, update options but now its shows no detail... .else bb protect app is undermaintenance.

    Please help me to fixixng

    Higuys,

    Menu option works only when hide us the back upward in progress and press the menu button... u can find the settings option.
    Thank you...

  • Smartphones blackBerry menu key

    Hi, I downloaded a quick text for my 8520 app and now the menu button does not work, I can't delete the app either because I can't use the menu key. Suggestions its driving me crazy

    Hello and welcome to the community!

    I recommend that you try to start safe mode:

    • KB17877 How to start a smartphone BlackBerry in Mode safe

    It will take several attempts to get the combination of keys ESC (press/release/hold) OK, so be patient. When properly in Safe Mode, thinking... what happened just before this behavior started? A new application? An update? A theme? Something else? Think carefully that the slightest change can be causal... and try to undo all that was.

    Good luck and let us know!

  • There is no 'content' in the menu button.

    I need to unlock pop ups and I read how but my menu button has no option of 'content' to implement this.

    Hi jcoggins453,
    You can find it in the topic: config page. However I do not recommend it as a permanent change.

  • left rather right side menu button

    Hi guys, just reinstalled windows. previously, I had a firefox addon or a script that set the menu button on the left side on the right side. can you please guide me to this addon or script
    Thank you

    See this UserStyle:
    https://userstyles.org/styles/94907/australis-menu-button-on-the-left

  • When I click on the menu button, why I can't see the historical option?

    According to the help instructions, in order to remove all or part of the history of my search, I'm supposed to click on the menu button and then select the option of history. However, when I click on the menu button, the story is not listed as one of the options.

    Hi, the button can be in 'other tools and features' in the section Customize the menu. If so, you can drag it to a location of your choice. If it is not visible, try clicking on Restore Defaults - more information - controls customize Firefox, buttons, and toolbars.

    You also bring up history by pressing Ctrl + H. Or you can bring up the menu bar (History tab) temporarily by pressing Alt, or if you want to stay there all the time, then right-click in the tab bar (but not on a tab) and a tick/check bar menu.

    If your question is resolved by this or another answer, please take a minute to let us know. Thank you.

  • Why my Menu button does not provide an add-ons button?

    Some of your help pages have departure instructions, '1. Click the menu button and choose Add-ons. The tab of the Add-ons Manager will open. "My menu access such an option. There choices such as the new window, new private Page window, save, print, etc. There is also a 'Sign' button in Sync, a '+ customize', etc.

    Hi, please see - controls to customize Firefox, buttons, and toolbars.

    If the add-on button is not on the menu or other tools and features, click default settings.

    You will also find in the menu bar > tools > modules as mentioned by FredMcD.

    If your question is resolved by this or another answer, please take a minute to let us know. Thank you.

Maybe you are looking for