Press ESC and it really leave the program?

Hello world

I write an application containing the Boolean keyChar 'protected' on the basis of default screen.

This function allows to capture the user key to allow the programmer to settle the procedure handles the keypress.

Currently, I want to add a lock in this function on a button. I put a Boolean called "applocker.

and put it in the keyChar such as:

If you don't want the key to be processed by what anyone else, then return true to indicate that you have treated.

In this case you return false, then treatment default screen will be call close() and because your screen is the only screen on screen close() closes your app.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • have iPod nano old - how to restore the default settings?

    My 2009 iPod Nano must be reset to the default value. How to do this? Want to start over with him (unlike computer - win now Mac; take no more music, etc..) Thank you. Mac Book Pro El Capitan 10.11.6

  • STOR. E partner HARD drive does not work with USB 2.0

    Hi all I recently purchased a 1 TB STOR. E partner HDD and it worked without any problems on my laptop Macbook Pro which has only USB 2.0 ports. A few days ago, the HARD drive has been disconnected from the laptop without ejecting first, and now it i

  • "the hard drive test failed.

    hard drive failed.  not found boot device.  Help!  I can not even anywhere to back up my photos...

  • TFT LCD Monitor 'Gateway '.

    When I wake the computer from sleep mode, the vga monitor icon lingers to long... What can I do to shortning the appearance of the icon or remove this source of irritation,?

  • camera L1010 Windows 7

    What confidence and good site that I can download camera to my lappie?