]> granicus.if.org Git - transmission/commitdiff
when showing quicklook window, leave previous window as key
authorMitchell Livingston <livings124@transmissionbt.com>
Wed, 21 May 2008 18:47:48 +0000 (18:47 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Wed, 21 May 2008 18:47:48 +0000 (18:47 +0000)
NEWS
macosx/QuickLookController.m

diff --git a/NEWS b/NEWS
index ad5466d8c6109edd63cd5456b9b837fc05720aee..192cbeaea0ef2a28396559cce25efd22b52be8a1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,7 +3,7 @@ NEWS file for Transmission <http://www.transmissionbt.com/>
 1.30 (2008/mm/dd)
 http://trac.transmissionbt.com/query?group=component&milestone=1.30
 - Mac
-   + QuickLook integration in the main window and inspector's file tab
+   + Quick Look integration in the main window and inspector's file tab
    + Transfers can be dragged to different groups
    + Status strings are toggled from the action button (they are no longer clickable)
 
index 8cc73a02c447c0136b0651c8aa0aef1585c77a4b..58645b39195510664a65f93445a8d7431ab7930f 100644 (file)
@@ -92,10 +92,12 @@ QuickLookController * fQuickLookInstance = nil;
     {
         if ([self quickLookSelectItems])
         {
+            NSWindow * keyWindow = [NSApp keyWindow];
+            
             [[QLPreviewPanel sharedPreviewPanel] makeKeyAndOrderFrontWithEffect: 2];
-            // Restore the focus to our window to demo the selection changing, scrolling (left/right)
-            // and closing (space) functionality
-            //[[self window] makeKeyWindow];
+            
+            //restore the focus to previous key window
+            [keyWindow makeKeyWindow];
         }
     }
 }