OSX/Cocoa : fix the Cmd modifier stuck after cancelling the quit dialog
authorDamien Plisson <damien.plisson@yahoo.fr>
Sun, 1 Aug 2010 16:25:00 +0000 (16:25 +0000)
committerDamien Plisson <damien.plisson@yahoo.fr>
Sun, 1 Aug 2010 16:25:00 +0000 (16:25 +0000)
intern/ghost/intern/GHOST_SystemCocoa.mm

index bec243fc977ab5a1f9e9d54620e2965a1045e437..b7038a30e0086bdb83f327b8685063c043f6c10a 100644 (file)
@@ -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();
                        }
                }