What is scancode to hang up keyboard?

I'm a nag screen that will appear via pushscreen when triggered and play a media file. I have no problem to close the form when the user clicks the 'Close' button I created.

But when the user, instead of click on the button 'Close', click the Red hang up button, media that he will not stop. and another triggered the event, multiple screen will be pushed and played.

How can I detect the Red hang up button in order to correctly stop and close media and screen?

My bad, actually. Here's the code. This works. I got from this forum by searching for KEY_END

   /**
     * Overridden to capture SEND and END keys
     * @param aKeyCode
     * @param aTime
     * @return
     */
    public boolean keyDown(int aKeyCode, int aTime)
    {
      if (Keypad.key(aKeyCode) == Keypad.KEY_SEND)
      {
        return true; // always consume SEND key
      }
      else if(Keypad.key(aKeyCode) == Keypad.KEY_END
        || Keypad.key(aKeyCode) == Keypad.KEY_ESCAPE)
      {
        // close screen or whatever
        //close();
        return true;  // consume
      }

      return super.keyDown(aKeyCode, aTime);
    }

Tags: BlackBerry Developers

Similar Questions

  • What is the use of the keyboard of phone numbering alphabet

    What is the use of the keyboard of phone numbering alphabet

    I could be misunderstanding your question, but if you mean the letters below the numbers on the keyboard of the phone (for example the ' ABC' below the 2), use only one of them is for companies of advertising with easier to remember numbers. For example, Apple Announces the number (800) MY-APPLE which is composed as (800) 692-7753 words are easier to remember and the numbers on the keyboard allow to translate the letters to numbers that you dial.

  • WHAT IS THE MICROSOFT WIRELESS COMFORT KEYBOARD 1. 0A LIGHTUP?

    WHAT IS THE MICROSOFT WIRELESS COMFORT KEYBOARD 1. 0 TO LIGHT UP ON THE KEYS?

    Hi Conniedarragh,

    The keyboard and mouse functionality depends on different model. I suggest you to check for more details on the features of this model by using the Microsoft hardware Web site.

    You can check the link:
    http://www.Microsoft.com/hardware/en-us/downloads#keyboard

    Let us know if you need any other help on problems with Windows.

  • What is the character of some keyboard shortcuts that resembles a slash reverse, with an equal sign?

    What is the character of some keyboard shortcuts that resembles a slash reverse, with an equal sign?

    Here's something on apple forums:

    Cannot use keyboard shortcuts in Photoshop C... | Apple support communities

  • What do the buttons on the keyboard of 5000,

    I am at a loss to know what that most average of buttons on this keyboard, especially on the first two lines. There is no instructions, or an illustration of keyboard with precision. How do program you buttons 1 to 5?

    It's hopeless, when we want to get the best out there and can be great for the experienced user.

    Anything else is not that of programming, also?

    Everything works fine for my normal use but want TO KNOW ALL!  Where can I get it, come on Microsoft, you have to look at the internet to find many others in the same boat.

    Any help much appreciated.

    [Moved from comments]

    Hello

    Work through this thread:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/what-do-all-the-keys-on-a-Microsoft-Wireless/d329d20e-2a7f-46a7-96DC-11c57572c93a

    Don

  • What drivers needed for re - activate keyboard Aspire V5-551? Multiple copies to Device Mgr: cleaning?

    What drivers need to be reinstalled (or removed) to reactivate the internal keyboard on an Aspire V5-551? The original keyboard driver where accidentally deleted.  I already reinstalled the driver Dritek RF button (Radio controller).
    Except for the internal keyboard, PC works very well using an external keyboard (or the on-screen keyboard) and a wireless Logitech mouse.  Device Manager appears to show multiple copies of the drivers. Cleaning is needed?

    Hello IronFly,

    After your comment, I replaced the keyboard and the PC now works fine.  Thank you very much for the solution.

    Moreover, I ordered the keyboard via Amazon MarketPlace, it came directly from China for a price incredibly low of c$ 17. It took 3 weeks, but the delay was worthwhile because he saved the computer.

  • New Wireless Desktop 800 with no transceiver - what can I do with the keyboard and mouse?

    I have a MS Wireless desktop 800. After a week, I broke the mini transceiver and bought a new game. Since the first set keyboard and mouse are matched at the factory and cannot be re-synched, I find myself with essentially a new keyboard and mouse that I can't use. I wouldn't throw out - they are brand new. Is this WHAT can I do with them?

    Hello

    There is no suggestion that we can do to solve this problem.

    It's specific hardware of matching which can only be solved through software.

    You must contact the material support of the link below:

    How to replace Microsoft software or hardware, order service packs and replace manuals:

    http://support.Microsoft.com/kb/326246

    I hope this helps.

  • Skype 7.7.0.102 + Windows 10 build 10240 (final version) hangs on keyboard shortcuts

    Hello there, just upgraded my windows 8.1 for Windows 10 build 10240 (should be communicated end, obtained through Windows Update). When I switch from keyboard access keys (my setup is: CTRL + SHIFT + number 1-3), Skype crashes just and not responding any more.

    The tray is very well, but it's very uncomfortable, as I typing in 3 different languages.

    Skype 7.7.0.102 is the version of Skype, tried to reinstall but still the same problem

    OK, the solution is:

    Disable UPNP in the settings advanced Skype (this is important, because it wouldn't work with Vista SP2 compatibility mode)

    Go to the folder program files, skype\phone, make right click on skype.exe-> Compatibility Mode = WIndows Vista SP2. Voila, it works well (I hope it lasts more updates)

  • Re: What is the model of default keyboard in a Qosmio G30?

    Hello
    I have a Qosmio G30-155 which I had arranged with additional partitions. Recently, I did a complete reinstall of Windows Vista, but I have not used the Vista DVD provided with my computer because it would destroy my partitions. So, I used a standard DVD of Vista. Everything works well except two questions: the computer is not responding to shortcut keys, or IR remote. Laptop infiltrates the IR signals, because when one presses a button on the IR remote control, a few lights in the remote and computer. However, nothing else happens.

    I installed several configurations of the packages 'remote control manager', "Added value package" and "Support" button, nothing helps.

    I checked the Device Manager, and my keyboard appears as a "PS/2 Standard keyboard. I guess that this setting is false, because this keyboard would not have access keys. So, this setting could be cause my problems.

    Can someone tell me which type of keyboard G30s were?

    Thank you and best regards

    I agree with Akuma
    There is no special keyboard drivers and those drivers are not needed.,.
    The Windows operating system, no matter if it of Vista or XP, uses the Microsoft keyboard driver.

    To enable the keys FN and Toshiba control buttons the VAP (value added package) must be installed

    You must ensure that you have chosen the correct drivers for the laptop G30.
    The G30-155 seems to belong to the series of PQG32E so chose exactly this model in the form of download number.

  • What iphone sync, itunes hangs

    Whenever I try to sync to my iPhone last week, it blocks iTunes and I have to restart. I do it on a machine with the versions windows more updated to iTunes and iPhone software.i tried out authorizing and allowing the phone and still does not, any help?

    You should tell us more specifically the version of your Windows operating system, iTunes and iOS software numbers.  Say "up to date" is not informative.  For example, if you are running Windows Vista or Windows XP, the version of iTunes "updated" cannot support iOS 9.

  • I have the smart keyboard Ipad 9.7 pro - what's with different models?

    Hello

    I am wanting to buy a smart keyboard for my thumb iPad 9.7 Pro in India. But I see a couple of different models, namely MJYR2ZM/A, MM2LZA/A. can someone please guide as to the difference, if any, between these and the one to buy. There is a difference of low price between the two on amazon.

    Thank you

    What I can say to a keyboard to search the first Google list you is for the larger iPad Pro.

  • What is the number of keyboard for Portege Z30-A-1E5 part?

    Hello
    I want the Toshiba Portege Z30 A 1E5, but is apparently available for purchase of the German and Austrian sellers with the QWERTZ keyboard. I would like to buy an and Exchange on the keyboard AZERTY or QWERTY (UK).

    However, I spoke with a company that and they can't confirm that they can get a part unless I can provide a reference number of keyboard (they also cannot give me a quote without it), but this number does not seem to be easy to get their hands on without actually having the computer and take off the keyboard and research under! I feel a little nervous about spending so much money when there's a chance that I won't be able to reverse the keyboard.

    So my question is, can someone tell me what the part number of the keyboard is for the a-z30-1e5 portege?

    Any help would be appreciated!

    Kate

    Hi, Kate

    I m wondering why you want to buy a Portege Z30-A-1E5 that isn't available in the United Kingdom?
    The notebooks are pre-installed with a Windows system in different languages. In the case of Portege Z30-A-1E5 available in Germany, the system language would be German.
    The keyboard also supports a different layout.

    Portege Z30-A-1E5 was equipped with a processor i7, SSD 512 GB and 16 GB of RAM disk.
    Very similar Portege laptop, Z30 - has - 1 6 was released in the United Kingdom. Its preinstalled with the Windows system in the English language and English keyboard layout.
    Of course, the hardware specs are a little bit lower (256 GB SSD drive and 8 GB of RAM) but I think that this could be improved is much easier to replace the keyboard.

    However, where you can buy the Portege Z30-A-1E5, I recommend contacting the maintainer authorized Toshiba in your country for replacement keyboard. Guys could control the keyboard of Toshiba law and could perform the replacement.

    Just a note: the replacement must be performed by service provider authorized because of the validity of the guarantee. The replacement must be performed by an approved engineer to keep the warranty valid.

  • I can't install my K200 keyboard what should I do?

    I tried in plugging it in different usb ports!

    Hi Danni Gonza,

    1. what happens when you connect the keyboard to the computer?

    2. did you of recent changes on the computer?

    3. are you able to use other USB devices on the computer?

    4. is this a new keyboard you are trying to install on the computer?

    See the link below and run the Fixit tool available, check if it helps.

    Hardware devices do not work or are not detected in Windows

    http://support.Microsoft.com/mats/hardware_device_problems/

    If the previous step fails, then check the State of the keyboard on the computer by using the Device Manager.

    How to manage devices in Windows XP

    http://support.Microsoft.com/kb/283658

    For further assistance, you can contact the Logitech support.

    Contact technical support for your K200

  • What is keyboard navigation? What is doing?

    What's doing navigation with the keyboard? How does it work? It is better that it is on or off?

    This is when you use the keyboard to navigate using Page home, end, up/down and the arrow keys instead of your mouse.

    This will depend on your preferences if it is better to have enabled or disabled.

    How to activate the keyboard navigation or disable within Web pages in Internet Explorer:
    http://www.SevenForums.com/tutorials/100311-caret-browsing-turn-off.html

    Turn on in Firefox:
    http://support.Mozilla.com/en-us/KB/unable%20To%20scroll%20with%20arrow%20keys

  • Keyboard in iOS Safari 10 appears when the is not necessary.

    I have a problem on my site, where the keyboard in Safari is showing all the time when there are areas of text on the page.

    The HTML code on the page is built using JavaScript, but there is no box entry and no reason the keyboard would be necessary.

    Does anyone know what are the causes of the keyboard show, or whether or not it is documented somewhere?

    I have the same problem.

    We recently launched a web application for a large client, and this problem appeared with the iOS 10 update. It wasn't a problem with previous versions of iOS and we are perplexed as to why it happens.

    Someone please drop some wisdom!

Maybe you are looking for