VirtualBox

Ticket #5684: pass_all_the_keys.diff

File pass_all_the_keys.diff, 1.5 KB (added by CoreyOConnor, 13 years ago)
  • src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp

     
    10001000        UICocoaApplication::instance()->registerForNativeEvents(RT_BIT_32(10) | RT_BIT_32(11) | RT_BIT_32(12) /* NSKeyDown  | NSKeyUp | | NSFlagsChanged */,
    10011001                                                                UIKeyboardHandler::darwinEventHandlerProc, this);
    10021002
    1003         ::DarwinGrabKeyboard (false);
     1003        // Issue 5684 - Do not grab the global hotkeys
     1004        ::DarwinGrabKeyboard (true);
    10041005    }
    10051006    else
    10061007    {
     
    10181019
    10191020    /* Check if this is an application key combo. In that case we will not pass
    10201021     * the event to the guest, but let the host process it. */
    1021     if (::darwinIsApplicationCommand(pvCocoaEvent))
    1022         return false;
     1022    // Issue 5684 - Do not filter out any keys from propogating to the guest.
     1023    // curiously, the accessors used in darwinIsApplicationCommand have side effects
     1024    // that must occur for the event to be processed.
     1025    // So we have to call the function but ignore the result.
     1026    // XXX: Pull out the NSEvent message that has the side effect to this function.
     1027    ::darwinIsApplicationCommand(pvCocoaEvent);
    10231028
    10241029    /* All keyboard class events needs to be handled. */
    10251030    if (eventClass == kEventClassKeyboard)

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy