1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-07 15:04:13 +00:00

when showing quicklook window, leave previous window as key

This commit is contained in:
Mitchell Livingston 2008-05-21 18:47:48 +00:00
parent e406dcc2ab
commit f8d72c8708
2 changed files with 6 additions and 4 deletions

View file

@ -92,10 +92,12 @@ QuickLookController * fQuickLookInstance = nil;
{ {
if ([self quickLookSelectItems]) if ([self quickLookSelectItems])
{ {
NSWindow * keyWindow = [NSApp keyWindow];
[[QLPreviewPanel sharedPreviewPanel] makeKeyAndOrderFrontWithEffect: 2]; [[QLPreviewPanel sharedPreviewPanel] makeKeyAndOrderFrontWithEffect: 2];
// Restore the focus to our window to demo the selection changing, scrolling (left/right)
// and closing (space) functionality //restore the focus to previous key window
//[[self window] makeKeyWindow]; [keyWindow makeKeyWindow];
} }
} }
} }