Revision: 29485
          http://sourceforge.net/p/bibdesk/svn/29485
Author:   hofman
Date:     2025-08-27 16:52:18 +0000 (Wed, 27 Aug 2025)
Log Message:
-----------
download file when form submitted

Modified Paths:
--------------
    trunk/bibdesk/BDSKTextImportController.m

Modified: trunk/bibdesk/BDSKTextImportController.m
===================================================================
--- trunk/bibdesk/BDSKTextImportController.m    2025-08-27 16:35:21 UTC (rev 
29484)
+++ trunk/bibdesk/BDSKTextImportController.m    2025-08-27 16:52:18 UTC (rev 
29485)
@@ -947,7 +947,7 @@
 
 - (void)webView:(WKWebView *)aWebView 
decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction 
preferences:(WKWebpagePreferences *)preferences decisionHandler:(void 
(^)(WKNavigationActionPolicy, WKWebpagePreferences *))decisionHandler  
API_AVAILABLE(macos(10.15)) {
     if (@available(macOS 11.3, *)) {
-        if ([navigationAction shouldPerformDownload])
+        if ([navigationAction shouldPerformDownload] || [navigationAction 
navigationType] == WKNavigationTypeFormSubmitted)
             decisionHandler(WKNavigationActionPolicyDownload, preferences);
         else
             decisionHandler(WKNavigationActionPolicyAllow, preferences);

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