Revision: 28890
          http://sourceforge.net/p/bibdesk/svn/28890
Author:   hofman
Date:     2024-05-06 23:32:03 +0000 (Mon, 06 May 2024)
Log Message:
-----------
make sure file view is first responder when starting QL preview, otherwise the 
document or window controller will take over the preview panel

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2024-05-05 
22:11:21 UTC (rev 28889)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2024-05-06 
23:32:03 UTC (rev 28890)
@@ -4232,6 +4232,8 @@
 
 - (void)_previewURLs:(NSArray *)iconURLs
 {
+    if ([[self window] firstResponder] != self)
+        [[self window] makeFirstResponder:self];
     if (_fvFlags.controllingQLPreviewPanel) {
         if ([[FVPreviewer sharedPreviewer] isPreviewing]) {
             [[FVPreviewer sharedPreviewer] stopPreviewing];
@@ -4278,6 +4280,8 @@
         if ([[FVPreviewer sharedPreviewer] isPreviewing]) {
             [[FVPreviewer sharedPreviewer] stopPreviewing];
         }
+        if ([[self window] firstResponder] != self)
+            [[self window] makeFirstResponder:self];
         [[QLPreviewPanel sharedPreviewPanel] makeKeyAndOrderFront:nil];
     }
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to