OSX/Cocoa : fix the Cmd modifier stuck after cancelling the quit dialog
This commit is contained in:
@@ -1299,6 +1299,11 @@ GHOST_TUns8 GHOST_SystemCocoa::handleQuitRequest()
|
|||||||
NSArray *windowsList = [NSApp orderedWindows];
|
NSArray *windowsList = [NSApp orderedWindows];
|
||||||
if ([windowsList count]) {
|
if ([windowsList count]) {
|
||||||
[[windowsList objectAtIndex:0] makeKeyAndOrderFront:nil];
|
[[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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user