merged 30707:31141 from trunk
[blender.git] / intern / ghost / intern / GHOST_SystemCocoa.mm
index b17f7ab7c2e43e471d159714490bab3a40d95f4a..b0c7f10f3296458633db1e744276f6ebb37c50ed 100644 (file)
@@ -1322,6 +1322,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();
                        }
                }