OSX/Cocoa : fix the Cmd modifier stuck after cancelling the quit dialog

This commit is contained in:
Damien Plisson 2010-08-01 16:25:00 +00:00
parent 7e55571175
commit 4da55eed8f

@ -1299,6 +1299,11 @@ GHOST_TUns8 GHOST_SystemCocoa::handleQuitRequest()
NSArray *windowsList = [NSApp orderedWindows];
if ([windowsList count]) {
[[windowsList objectAtIndex:0] makeKeyAndOrderFront:nil];
//Handle the modifiers keyes changed state issue
//as recovering from the quit dialog is like application
//gaining focus back.
//Main issue fixed is Cmd modifier not being cleared
handleApplicationBecomeActiveEvent();
}
}