BrowserContentManager capture key

Hi all

We have added the BrowserContentManager following the example given by RIM at our request. Everything seems to work fine, but some keys lost it works. For example, before we added the BrowserContentManager the SPACEBAR (if maintained four seconds) on an 8830 would trigger a function.

The debugger does not yet acknowledge that space has been pressed. I guess that's because the event space in the field of browser and not the screen (where the space is captured). Should I just move the overloaded method of keyChar to the class that implements the browser? Is there a better way to get around this problem?

See you soon,.

Chris.

It depends on if return you true or false in the keyChar method.  True means that the key has been consumed, false means that it wasn't and that it must be passed to the next level.

Tags: BlackBerry Developers

Similar Questions

  • Capture key events

    Is there a way to cpture key events in webworks. I wanted to remove items from my database when you press the delete key native.

    Please check the event onHardwareKey

  • Key capture within a ScrollView

    I have a check that when I get a touch, I followed the touch() signal when the user moves upwards and downwards, to change the value there is a. Like in this video https://www.youtube.com/watch?v=aK0Mqxg89xc , but in the vertical direction.

    If I put the control inside a ScrollView, control no longer works, because I get a TouchEvent Cancel.

    I tried to change all the ancestors of TouchPropagationMode view touchPropagationMode:assThrough button down event and bring back them into the contact upwards / button cancel event (so the ScrollView should stop running events for the scrollbar, when this control has captured the touch event), but it does not work, and I keep getting the Cancel event.

    I also had a look at this thread http://supportforums.blackberry.com/t5/Cascades-Development/block-scroll-view/td-p/2029435 , that he says makes the turn of events, but I don't understand leave a control within the view, but from the outside.

    No hint of how to capture key events and prevent the ScrollView parent of during my control is the capture of the touch event!

    Finally found a way to solve this problem. Sorry for the 'spam' in the forum :/

    The path is the same used in the post I mentioned in my first post.

    I put a signal handler for my touch event.

    QObject::connect( counterLabel, SIGNAL( touch(bb::cascades::TouchEvent*) ),
                          this, SLOT( onTouchEvent( bb::cascades::TouchEvent* )));
    

    So when I get a touch down in my counterLabel, I call the hijackTouchEvents:

    void TouchCounter::onTouchEvent( bb::cascades::TouchEvent* touchEvent )
    {
        TouchType::Type eType = touchEvent->touchType();
    
        if( eType == TouchType::Down ){
            counterUpdateTimer->start();
            initialY = touchEvent->windowY();
            counterUpdateIncrement = 0;
            timerIntervalAccum = 0;
            hijackTouchEvents();
            touchEvent->accept();
        }
    }
    

    and I get the "oldest ancestor" to install a touchCapture Manager and block all events key to its immediate children (save mode to restore them later).

    void TouchCounter::hijackTouchEvents()
    {
        blockedNode = NULL;
        capturingTouchesNode = this;
        VisualNode* next;
        while( (next = qobject_cast(capturingTouchesNode->parent() ) ) != 0){
            blockedNode = capturingTouchesNode;
            capturingTouchesNode = next;
        }
        QObject::connect( capturingTouchesNode, SIGNAL( touchCapture(bb::cascades::TouchEvent*) ),
                              this, SLOT( onTouchCaptureEvent( bb::cascades::TouchEvent* )));
        if( blockedNode != NULL ){
            blockedNodeOriginalPropagationMode = blockedNode->touchPropagationMode();
            blockedNode->setTouchPropagationMode( TouchPropagationMode::None);
        }
    }
    

    I also have the function to disconnect from the touchCapture:

    
    void TouchCounter::freeTouchEvents()
    {
        QObject::disconnect( capturingTouchesNode, SIGNAL(  touchCapture(bb::cascades::TouchEvent*) ),
                                  this, SLOT( onTouchCaptureEvent( bb::cascades::TouchEvent* )));
        capturingTouchesNode = 0;
    
        if( blockedNode != NULL){
            blockedNode->setTouchPropagationMode( blockedNodeOriginalPropagationMode );
            blockedNode = NULL;
        }
    }
    

    And I call the freeTouchEvents function in the onTouchCaptureEvent, when I get a touch up or touch cancel event.

    
    void TouchCounter::onTouchCaptureEvent( bb::cascades::TouchEvent* touchEvent )
    {
        TouchType::Type eType = touchEvent->touchType();
        VisualNode* tgt = touchEvent->target();
        touchEvent->propagationPhase();
        if( eType == TouchType::Move && capturingTouchesNode != 0 ){
            float a = touchEvent->windowY();
            float diff = a - initialY;
            counterUpdateIncrement = getUpdateRateMilliseconds( diff  );
            if( diff > 10.0f ){
                valueDirection = -1;
            }else if( diff < 10.0f ){
                valueDirection = 1;
            }else{
                valueDirection = 0;
            }
            touchEvent->accept();
        }else if( eType== TouchType::Up || eType == TouchType::Cancel ){
            initialY = 0;
            counterUpdateTimer->stop();
            touchEvent->accept();
            freeTouchEvents();
        }
    }
    

    I hope this is help someone!

  • Capturing two keys as one

    Hello world. I'm developing an application with keyboard events. Capture keys pressed, I need that when you press 'c' and then 'h' it is regarded as the 'ch '. Any idea? Thanks in advance.

    Concerning

    These figures are false.  use:

    function keydownF(e:KeyboardEvent):void {}

    If {(e.keyCode is 67)

    startTime = getTimer ();

    } Else if (e.keyCode == 72 & (getTimer () - startTime))<500)>

    GuardoLetra = "ch".

    trace ("es GuardoLetra" + GuardoLetra);

    }

    }

    (p.s when you use the adobe forums, check useful/correct, if there is.)

  • Detection of a key in a webview event

    I'm looking for a way to detect the touch events into a webview. Touch() and touchCapture() are not signals of WebView WebView is a VisualNode.

    Any ideas?

    Thank you

    Thanks for the ideas! In a packaging container Web display would not capture key events.

    I found that the solution is to check the type of navigation using WebNavigationType request. If the type is WebNavigationType::LinkClicked, I can tell when a user has clicked on the link, which was really my goal.

  • How to listen to key events when App in background mode.

    My application is running at startup and I want to capture "key events", while my app running in the background.

    Only the app with focus can capture key events.

  • Where is the product key?

    With Windows 8, Microsoft changed stickers that have the product key that the user must type in during the installation of the operating system of new embedded BIOS product key. The idea is that by eliminating the tile, you eliminate one of the easiest ways for nefarious users get a legitimate product key. The sticker also eliminating product key removes any concern that the vignette could get damaged while at the same time eliminating the long and irritating the process of typing in various letters and numbers in the installation of the operating system.

    If the user has to reinstall the operating system on a computer with Windows 8, the installation process automatically captures key software product of the motherboard BIOS without input from the user. This means that these stickers familiar windows product key will no longer appear on Windows 8 computers.

    Hello

    A question any longer, with material that could be to help others.

    My HP Pavilion (2013) brand new 23-b010ez a pre-installed MS Windows 8 version 6.2.9200.
    Comments on this page to the effect of "the old fashioned useless, full of 25-digit product key" are not correct.
    That means installed "Windows Help and Support" of my computer for example on the product key?
    I quote:
    "It's a 25 numbers used to activate Windows.
    -"the product key must be in the box that came with the Windows DVD come in French - or.
    -"[product key] should be in an e-mail that shows that you have purchased Windows."
    "It's a good idea to save a copy of your product key for your records in case you need to reinstall Windows."
    I had no system of Windows (recovery) DVD on purchase. It came pre-installed.
    I had no email with a product code. I got a confirmation of my Windows account, I was forced to sign in the first starting up my computer and a confirmation email of authorization with a verification for my Microsoft Account code.
    But no code produced by email (they wouldn't email defeats in any case - security).
    And I agree keep an external copy of the product key. Apparently (according to the "Windows Help and Support information" provided on my new computer I HAVE the product code for reinstalling Windows.)
    I found also asks me to tap into it, if I try to buy windows to another computer, or to add functionality to my edition of Windows from here: configuration\systeme and security\activation center\windows of activation using these built-in control functions. In both places, I wonder to enter the complete 25 digit product code. No other solution. Can't tell him to go find the BIOS, on the contrary!
    So far, what I've found and where?
    I tried to find the product key, without success. In "Windows Activation" to control configuration\systeme and center\windows security\activation, I found the last 5 digits (or are they the first?) and my activation date. In "System information" control configuration\systeme and security\system, less listed under the title 'Activation of Windows', I find my windows is activated and a "product ID 20 code numbers. What is the rest of the key complete product which is now part of BIOS, as shown above? It would be good to know.
    Why do I need to enter the product key?
    Well because reinstallin Windows, adding additional features (regardless of who it) and buy another copy Windows to another machine.
    So, where is the product key - or come by it?
    I don't have confidence now and seen the galley do to get under pressure once I have to do a reinstall of Windows on my new computer.
    Thank you very much.
    ARH

    Hello

    Thanks for posting the query on Microsoft Community.
    Like you said windows 8 has been preinstalled on your computer. We would like to tell you that the product key will not need to be included as it uses the product by the manufacturer key which is encrypted in BIOS.

    How to find the product key?

    1. open the original OEM software package; the product key will be printed on a sticker located somewhere on the case. Some software have the sticker on the back; others will have it inside the case.

    2. review the case of your computer for an OEM product label; This is common for computers produced by major retailers operating under Windows.

    3. open the manual supplied with the software; OEM key are printed on the inside cover, or inside the back cover first. Sometimes the key will be printed on a loose sheet back in the manual.

    4. communicate with the computer retailer that provided the software; retailers often keep records of keys to product belonging to their customers, in the case where the keys are lost.

    Hope that answers your query. You can write back to us for other queries/problems related to windows and we will be happy to help you.

  • Where can I find the product key for desktop Windows 8?

    I am trying to find the product key for my new hp desktop computer 8 windows. Where can if find it?

    With Windows 8, Microsoft changed stickers that have the product key that the user must type in during the installation of the operating system of new embedded BIOS product key. The idea is that by eliminating the tile, you eliminate one of the easiest ways for nefarious users get a legitimate product key. The sticker also eliminating product key removes any concern that the vignette could get damaged while at the same time eliminating the long and irritating the process of typing in various letters and numbers in the installation of the operating system.

    If the user has to reinstall the operating system on a computer with Windows 8, the installation process automatically captures key software product of the motherboard BIOS without input from the user. This means that these stickers familiar windows product key will no longer appear on Windows 8 computers.

  • How to get the lost activation key

    my computer is installed with windows original 8. When I tried to upgrade to windows pro it asks activation key. but I have the original product key, but I lost my activation key. How can I get my activation code.

    Go to the order summary page, you can find your product key:

    https://www.mswos.com/

    If Windows 8 came preininstalled on your computer:

    With Windows 8, Microsoft changed stickers that have the product key that the user must type in during the installation of the operating system of new embedded BIOS product key. The idea is that by eliminating the tile, you eliminate one of the easiest ways for nefarious users get a legitimate product key. The sticker also eliminating product key removes any concern that the vignette could get damaged while at the same time eliminating the long and irritating the process of typing in various letters and numbers in the installation of the operating system.

    If the user has to reinstall the operating system on a computer with Windows 8, the installation process automatically captures key software product of the motherboard BIOS without input from the user. This means that these stickers familiar windows product key will no longer appear on Windows 8 computers.

  • How to get the product key of Windows 8 in Windows 8 OEM preload

    Hi guys

    I had a problem with my Windows 8. as we know, we can find win 7 product key by clicking on the computer properties and we can find it in the folder i386, but where do I find my windows product key for win xp preloded OEM, OS 8 was Lenovo, I checked in system properties, the whole product is not displayed , his looks like XXXXX-XXXXX-XXXXX-XXXXX-48796, I called Microsoft support and they said that we are not providing, I called the guys at Lenovo said verified with Microsoft, my OS is this true .confuse which continues?

    Thanks in advance, kindly suggest

    With Windows 8, Microsoft changed stickers that have the product key that the user must type in during the installation of the operating system of new embedded BIOS product key. The idea is that by eliminating the tile, you eliminate one of the easiest ways for nefarious users get a legitimate product key. The sticker also eliminating product key removes any concern that the vignette could get damaged while at the same time eliminating the long and irritating the process of typing in various letters and numbers in the installation of the operating system.

    If the user has to reinstall the operating system on a computer with Windows 8, the installation process automatically captures key software product of the motherboard BIOS without input from the user. This means that these stickers familiar windows product key will no longer appear on Windows 8 computers.

  • Where can I get the activation key for Windows 8 build 9800?

    I can't have the activation key for windows 8 build 9200? Help me please

    If you purchased Windows 8:

    Go to the order summary page, you can find your product key:

    https://www.mswos.com/

    If Windows 8 is preinstalled on a new computer that you own:

    With Windows 8, Microsoft changed stickers that have the product key that the user must type in during the installation of the operating system of new embedded BIOS product key. The idea is that by eliminating the tile, you eliminate one of the easiest ways for nefarious users get a legitimate product key. The sticker also eliminating product key removes any concern that the vignette could get damaged while at the same time eliminating the long and irritating the process of typing in various letters and numbers in the installation of the operating system.

    If the user has to reinstall the operating system on a computer with Windows 8, the installation process automatically captures key software product of the motherboard BIOS without input from the user. This means that these stickers familiar windows product key will no longer appear on Windows 8 computers.

  • How to find my product key Windows 8 if it came pre-installed on my Hp laptop. I want to upgrade to Windows 8.1 when it comes out.

    I would like to install Windows 8.1 when it comes out in August. According to Microsoft:

    You must have your product key to install 8.1. My laptop came pre-installed with it and I don't know where to find. I would not use 3rd party applications. I know how to get into my CMOS and that's all. Thank you.

    With Windows 8, Microsoft changed stickers that have the product key that the user must type in during the installation of the operating system of new embedded BIOS product key. The idea is that by eliminating the tile, you eliminate one of the easiest ways for nefarious users get a legitimate product key. The sticker also eliminating product key removes any concern that the vignette could get damaged while at the same time eliminating the long and irritating the process of typing in various letters and numbers in the installation of the operating system.

    If the user has to reinstall the operating system on a computer with Windows 8, the installation process automatically captures key software product of the motherboard BIOS without input from the user. This means that these stickers familiar windows product key will no longer appear on Windows 8 computers.

  • I'm looking for my product key for windows 8 on laptop fujitsu have preinstalled window 8

    Laptop fujitsu, I bought a few days ago, I want to activate windows preinstalled 8 where can I get the product key, I tried but I couldn't so please help me

    With Windows 8, Microsoft changed stickers that have the product key that the user must type in during the installation of the operating system of new embedded BIOS product key. The idea is that by eliminating the tile, you eliminate one of the easiest ways for nefarious users get a legitimate product key. The sticker also eliminating product key removes any concern that the vignette could get damaged while at the same time eliminating the long and irritating the process of typing in various letters and numbers in the installation of the operating system.

    If the user has to reinstall the operating system on a computer with Windows 8, the installation process automatically captures key software product of the motherboard BIOS without input from the user. This means that these stickers familiar windows product key will no longer appear on Windows 8 computers.

    Help with the activation process, contact technical support.

  • Reinstallation of Windows 8 using a recovery disc and need product key

    Recently my computer crashed and needs to be reinstalled using a disc of recovery of Windows 8.

    After selecting my country and spoken language, in the next screen, he invites me to enter a product key, which I can't access anything as it is already encrypted in the software.

    I can not forward a more unless I can access the product key.

    Really need help here

    Hello Lauren,

    Thanks for posting your question in the Microsoft Community Forums.

    If your computer came pre-installed with Windows 8, then using the recovery disk don't ask for the product key. The product key of Windows 8 on new machines is now integrated into the motherboard. It uses the Secure Boot technology.

    If the user has to reinstall the operating system on a computer with Windows 8, the installation process automatically captures key software product of the motherboard BIOS without input from the user. If you have an OEM computer that is preinstalled with Windows 8, then you must contact the manufacturer of the computer that the computer broke down recently so that they can help you.

    If your computer came pre-installed with Windows 7, then you must install Windows 7 first and then upgrade to Windows 8.

    Response with the State of the question and we will be happy to offer you our help.

  • How do you get the product key from a pre installed Windows verion

    I bought a computer comes with windows 8 pro 64-bit pre-installed already.

    Where can I find the product key for this.  It is not revenue anywhere.

    With Windows 8, Microsoft changed stickers that have the product key that the user must type in during the installation of the operating system of new embedded BIOS product key. The idea is that by eliminating the tile, you eliminate one of the easiest ways for nefarious users get a legitimate product key. The sticker also eliminating product key removes any concern that the vignette could get damaged while at the same time eliminating the long and irritating the process of typing in various letters and numbers in the installation of the operating system.

    If the user has to reinstall the operating system on a computer with Windows 8, the installation process automatically captures key software product of the motherboard BIOS without input from the user. This means that these stickers familiar windows product key will no longer appear on Windows 8 computers.

Maybe you are looking for