Update of /cvsroot/audacity/audacity-src/src
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv11305

Modified Files:
        Project.cpp 
Log Message:
Do not force focus to TrackPanel upon returning to Audacity after using a 
different app.

Index: Project.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Project.cpp,v
retrieving revision 1.429
retrieving revision 1.430
diff -u -d -r1.429 -r1.430
--- Project.cpp 3 Jun 2009 02:29:25 -0000       1.429
+++ Project.cpp 4 Jun 2009 05:37:07 -0000       1.430
@@ -1637,7 +1637,23 @@
       // Under Windows, focus can be "lost" when returning to 
       // Audacity from a different application.  For keyboard
       // users, this is a major problem.
-      mTrackPanel->SetFocus();
+      //
+      // LL:  (Jun-2009)  I'm not really sure why I added this back in
+      //      Jul-2006, but I'm not able recreate the lost focus issue
+      //      any longer which is probably because we've made so many
+      //      improvements to focus handling since then.
+      //
+      //      In any case, it actually causes a problem where a control
+      //      in the Selection toolbar, for instance,  may have the focus
+      //      and the user needs to pop over to a different application
+      //      to do something else.  If the following SetFocus() is left
+      //      in, then upon returning to Audacity, the focus will not be
+      //      where the user left it.
+      //
+      //      So, I'm commenting it, but leaving it here in case the lost
+      //      focus issue still exists.
+      //
+      //mTrackPanel->SetFocus();
    }
    event.Skip();
 }


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to