Revision: 30078
          http://sourceforge.net/p/bibdesk/svn/30078
Author:   hofman
Date:     2026-02-27 22:19:34 +0000 (Fri, 27 Feb 2026)
Log Message:
-----------
make sure table item is selected when showing editor window for field

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2026-02-27 18:05:39 UTC (rev 30077)
+++ trunk/bibdesk/BDSKEditor.m  2026-02-27 22:19:34 UTC (rev 30078)
@@ -1891,16 +1891,19 @@
         return;
     }else if([fieldName isNoteField]){
         [tabView selectTabViewItemWithIdentifier:fieldName];
-    }else if([fieldName isEqualToString:BDSKPubTypeString]){
-        [[self window] makeFirstResponder:bibTypeButton];
-    }else if([fieldName isEqualToString:BDSKCiteKeyString]){
-        [citeKeyField selectText:nil];
-    }else if([fieldName isIntegerField]){
-        NSUInteger idx = [[collectionView content] indexOfObject:fieldName];
-        if (idx != NSNotFound)
-            [[self window] makeFirstResponder:[(BDSKEditorCollectionViewItem 
*)[collectionView itemAtIndex:idx] button]];
     }else{
-        [self editTextFieldAtRow:NSNotFound forField:fieldName selection:nil];
+        [tabView selectTabViewItemWithIdentifier:BDSKBibtexString];
+        if([fieldName isEqualToString:BDSKPubTypeString]){
+            [[self window] makeFirstResponder:bibTypeButton];
+        }else if([fieldName isEqualToString:BDSKCiteKeyString]){
+            [citeKeyField selectText:nil];
+        }else if([fieldName isIntegerField]){
+            NSUInteger idx = [[collectionView content] 
indexOfObject:fieldName];
+            if (idx != NSNotFound)
+                [[self window] 
makeFirstResponder:[(BDSKEditorCollectionViewItem *)[collectionView 
itemAtIndex:idx] button]];
+        }else{
+            [self editTextFieldAtRow:NSNotFound forField:fieldName 
selection: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