- (void)applicationWillFinishLaunching:(NSNotification *)application {
wxUnusedVar(application);
- // we must install our handlers later than setting the app delegates, because otherwise our handlers
- // get overwritten
+ // we must install our handlers later than setting the app delegate, because otherwise our handlers
+ // get overwritten in the meantime
NSAppleEventManager *appleEventManager = [NSAppleEventManager sharedAppleEventManager];
ms.SetMiddleDown( (buttons & 0x04) != 0 );
ms.SetRightDown( (buttons & 0x02) != 0 );
- ms.SetControlDown(modifiers & NSControlKeyMask);
+ ms.SetRawControlDown(modifiers & NSControlKeyMask);
ms.SetShiftDown(modifiers & NSShiftKeyMask);
ms.SetAltDown(modifiers & NSAlternateKeyMask);
- ms.SetMetaDown(modifiers & NSCommandKeyMask);
+ ms.SetControlDown(modifiers & NSCommandKeyMask);
return ms;
}