[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30945] trunk/blender/intern/ghost/intern/ GHOST_SystemCocoa.mm: OSX/Cocoa : fix the Cmd modifier stuck after cancelling the quit dialog

Damien Plisson damien.plisson at yahoo.fr
Sun Aug 1 18:25:00 CEST 2010


Revision: 30945
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30945
Author:   damien78
Date:     2010-08-01 18:25:00 +0200 (Sun, 01 Aug 2010)

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

Modified Paths:
--------------
    trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm

Modified: trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm	2010-08-01 16:02:34 UTC (rev 30944)
+++ trunk/blender/intern/ghost/intern/GHOST_SystemCocoa.mm	2010-08-01 16:25:00 UTC (rev 30945)
@@ -1299,6 +1299,11 @@
 			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();
 			}
 		}
 





More information about the Bf-blender-cvs mailing list