Revision: 29891
          http://sourceforge.net/p/bibdesk/svn/29891
Author:   hofman
Date:     2025-11-27 22:39:39 +0000 (Thu, 27 Nov 2025)
Log Message:
-----------
change first responder when editing to commit edit instead of committing 
NSEditors, as those apparently don't validate the committed string, e.g. from 
the formatter

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

Modified: trunk/bibdesk/BDSKFilterController.m
===================================================================
--- trunk/bibdesk/BDSKFilterController.m        2025-11-27 16:27:31 UTC (rev 
29890)
+++ trunk/bibdesk/BDSKFilterController.m        2025-11-27 22:39:39 UTC (rev 
29891)
@@ -265,11 +265,9 @@
 #pragma mark NSEditor
 
 - (BOOL)commitEditing {
-       for (BDSKConditionController *controller in conditionControllers) {
-        if (NO == [controller commitEditing])
-            return NO;
-    }
-    return YES;
+    if ([[[self window] firstResponder] isKindOfClass:[NSTextView class]] == 
NO)
+        return YES;
+    return [[self window] makeFirstResponder:nil];
 }
 
 #pragma mark Undo support

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