Where is the best place to trap the keys?

I want to intercept keyboard events to flip between screens (equivalents of menu) and also invoke actions in each screen.

For example, if you press a letter on the keyboard to switch between screens and send/end keys to start and stop things.

I'm currently adding the keypadlistener to each screen and definitions by editing screen. However, when the focus moves to my listfield, I lose the keyboard while this area focuses...

East - the best place to listen to events for the entire screen? I couldn't find out how to add a keypadlistener to the listfield.

I could not find a good description of the way in which this should be done. How "correct" and "more effective" to do?

Thank you

Ah. The simple answer is to replace KeyChar in the ListField and simply return false. Processing then returns to the screen. Makes perfect sense...

logList = new ListField(){
    public void onFocus(int direction) {
        setSelectedIndex(this.getSize());
    }
    public boolean keyChar( char key, int status, int time ) {
        return false;
    }
};

Tags: BlackBerry Developers

Similar Questions

  • Where is the key to refresh on C50 - A Satellite?

    Where is the key to refresh on C50 - A. On my old laptop is F5, but on an F5 disables the touchpad.

    You can use F5 as refresh the key, but you must change the mode of use of the F-keys.
    Follow these steps:
    Start Desktop Help > tools & utilities > system settings > keyboard you will find the option for function keys mode. Change special in standard mode.

    Now you should be able to use F5 as refresh key but don't not to disable the touchpad. This feature will be possible when you press FN and F5.

    Check it out please.

  • where is the key of "hash" on my keyboard

    where is the sign of hash on my keyboard tag... Please quite

    We need a lot more information to give you special help.

    Quoted by of Apple  'how to write a good question.

    To help other members in answering your question, give as much detail as possible.

    • Include your name (peripheral) product and specifications such as the speed of the processor, memory and storage capacity. Please do not include your serial number, IMEI, MEID or any other personal information.
    • Provide the version of your operating system and the relevant applications numbers, e.g. "OS X 10.4.11" or "Safari 4.1.3.
    • Describe the problem and include all the Details on what seems to make it.
    • The list of troubleshooting steps you have already tried, or temporary corrections that you discovered.

    For a detailed 'coaching', please see usage tips , help us help you on these forums and wrote an effective communities of Apple Support question

  • Where is the key to multiplation on the calculator does not

    Can not see the key multiply.  no problems with less, fracture, or add the key but do not see the key multiply.
    Thank you
    Catherine Swaim

    The * key (adjacent to the number 6)

  • Where is the key on the keyboard?

    Hello
    first of all, I do not even know the name of this key, so I can't create better title, sorry.

    That's what the look like key:

    It is a shortcut for a page break in the application of Pages.

    Thank you.

    It's two keys: command and Enter.

    But a MacBook Air does not Enter, key etc that the shortcut command function to return. If you turn on the keyboard Viewer, you can see that the fn key turn back (↩︎) to enter (⌅).

  • where is the key to the division on the calculator of Windows 7?

    Trying to use the Windows 7 Calculator but can find no key for the division and multiplication - can anyone help?

    ' * ' is the multiplication and "/" is the division. As is practical common on most spreadsheet applications...

  • Where is the key forward on the Outlook e-mail

    I went to Outlook from Hotmail. I can't find the command advanced enumerated in the choice for the emails that I receive.

    See if that helps,

  • Where is the key 100% width?

    Hi all!

    I'm doing an image stretched to fit 100% overall of the browser window. I use Adobe Muse 2016. Looks like it's gone! Thank you!

    Look for the "Stretch to the width of browser" option next to resize it: label in the Control Strip.

  • where is the product key W7 on mini 1000

    I'm recovering from a hard drive error. I have a Mini 1100 and it will start to QuickWeb, but will not proceed with Win7 longer.

    I have a fob USB recovery when the device was new, I created, but it does nothing after loading. All white screen. I intend replacing the operating system but make nave not required for activation product ID.

    So, where's the key?

    OldRadioGuy.

    Instructions to remove the service cover.

    Chapter 4, page 40.

    http://h10032.www1.HP.com/CTG/manual/c02481106.PDF

    We try to make your HP all the best experience.

    REO

  • where is the best place to store my information

    I migrated to the new version of the macbook, I am very happy, but the new macbook can not read the external hard drive I used to back up. It could be the fact that I need to use an adapter for USB, I'm looking for suggestions on where would be the best place for me save my information.

    What your old drive to backup link use: Firewire, perhaps? There is no adapter for FW on USB, so you can get a new enclosure that supports USB 3 then move the backup disk in the new case assuming that the disk is a SATA drive. Otherwise, buy something new to use for your backup.

  • Where is the best place and the best prices to buy LCD 15 "display

    I want to buy a 15 "TFT laptop awkward girls...
    any suggestions about where is the best place and the best price?

    Post edited by: peterrothwell

    Hi Peter

    As you probably know the laptop LCD display is one of laptop parts expensive (apart from the motherboard).
    I found a few new LCD for around $ 300

    CA? s your choice. Either you will be by a new one for $ 300 with warranty or you will try to buy a second hand one.
    I recommend to check big famous auction site for some deals! ;)

    Good luck

  • Where is the best place to find Widgets?

    Of course, there are many, many different widgets out there, some free, no more. Where is the best place to find a bunch of them that didn't cost me an arm and a leg?

    Unfortunately, they are not very easy to do. I'm working on a widget to do at the moment, but it's a larger project and I'm not sure when it will be ready for release. When using Muse, the other way to do this is through sites Business Catalyst. You can set up secure areas and manage it this way. But unfortunately I have no experience with that side of him, that I'm not much help here :/

  • Mavericks where is the best place for sites folder?

    Hi there... Thanks for reading

    I need to put in place of the Mavericks and dreamweaver sites

    where is the best place to have the sites folder?

    Thank you very much.

    warmly,.

    Hope

    Hope,

    This is a discussion on the establishment of a local web (Apache) on your Mac server.  Given that you do not use one, it is not applicable to your situation.

    Nancy O.

  • Where is the best place to implement the business logic in application of the ADF?

    I use jdeveloper 11g R2, JSF, Facelet

    Where is the best place to implement the business logic in application of the ADF?
    I mean something like the service layer in the spring

    Appreciate your comments

    Concerning
    Mohsen

    your application module...

  • Best place to initialize the View object query where clause or params

    Where is the best place to initialize the View object 'where' clause before the page is initially rendered? Or how should it be done?
    Specifically, I can't set these values in the entity or view objects because I need information from the user or information Session
    the user has entered before you navigate to the page. I want to prepare the View object so that the results of the query appears something reasonable
    the first time before using chooses search.

    Note: The view object must exist and I need to access managed beans to define the query.

    Is there an event hook (java code) that can be called before the page is rendered?
    Also, there are hooks that can be called when the user navigates to another tab or page?

    Published by: Greateful Sep 6, 2012 19:48

    Hello

    Check out this blog: https://blogs.oracle.com/aramamoo/entry/an_epic_question_how_to

    Arun-

Maybe you are looking for