Changeset 1320 in vbox
- Timestamp:
- Mar 8, 2007 6:59:53 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r1315 r1320 118 118 { 119 119 if (view->darwinKeyboardEvent (inEvent)) 120 return 0; 121 } 122 /* 123 * Command-H and Command-Q aren't properly disabled yet, and it's still 124 * possible to use the left command key to invoke them when the keyboard 125 * is captured. We discard the events these if the keyboard is captured 126 * as a half measure to prevent unexpected behaviour. However, we don't 127 * get any key down/up events, so these combinations are dead to the guest... 128 */ 129 else if (EventClass == kEventClassCommand) 130 { 131 if (view->kbd_captured) 120 132 return 0; 121 133 } … … 659 671 else if (on) 660 672 darwinGrabKeyboardEvents (false); 661 #endif 673 #endif 662 674 663 675 return ok; … … 1432 1444 ::CGSetLocalEventsSuppressionInterval (0.0); //?? 1433 1445 1434 EventTypeSpec eventTypes[ 4];1446 EventTypeSpec eventTypes[6]; 1435 1447 eventTypes[0].eventClass = kEventClassKeyboard; 1436 1448 eventTypes[0].eventKind = kEventRawKeyDown; … … 1441 1453 eventTypes[3].eventClass = kEventClassKeyboard; 1442 1454 eventTypes[3].eventKind = kEventRawKeyModifiersChanged; 1455 /* For ignorning Command-H and Command-Q which aren't affected by the 1456 * global hotkey stuff: */ 1457 eventTypes[4].eventClass = kEventClassCommand; 1458 eventTypes[4].eventKind = kEventCommandProcess; 1459 eventTypes[5].eventClass = kEventClassCommand; 1460 eventTypes[5].eventKind = kEventCommandUpdateStatus; 1443 1461 1444 1462 EventHandlerUPP eventHandler = ::NewEventHandlerUPP (VBoxConsoleView::darwinEventHandlerProc);
Note:
See TracChangeset
for help on using the changeset viewer.