Ticket #5684: pass_all_the_keys.diff
| File pass_all_the_keys.diff, 1.5 KB (added by , 13 years ago) |
|---|
-
src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
1000 1000 UICocoaApplication::instance()->registerForNativeEvents(RT_BIT_32(10) | RT_BIT_32(11) | RT_BIT_32(12) /* NSKeyDown | NSKeyUp | | NSFlagsChanged */, 1001 1001 UIKeyboardHandler::darwinEventHandlerProc, this); 1002 1002 1003 ::DarwinGrabKeyboard (false); 1003 // Issue 5684 - Do not grab the global hotkeys 1004 ::DarwinGrabKeyboard (true); 1004 1005 } 1005 1006 else 1006 1007 { … … 1018 1019 1019 1020 /* Check if this is an application key combo. In that case we will not pass 1020 1021 * 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); 1023 1028 1024 1029 /* All keyboard class events needs to be handled. */ 1025 1030 if (eventClass == kEventClassKeyboard)

