Revision: 28857 http://sourceforge.net/p/bibdesk/svn/28857 Author: hofman Date: 2024-04-07 08:33:14 +0000 (Sun, 07 Apr 2024) Log Message: ----------- commit edit and try to re-edit when rebuilding fields
Modified Paths: -------------- trunk/bibdesk/BDSKTextImportController.m Modified: trunk/bibdesk/BDSKTextImportController.m =================================================================== --- trunk/bibdesk/BDSKTextImportController.m 2024-04-07 08:15:08 UTC (rev 28856) +++ trunk/bibdesk/BDSKTextImportController.m 2024-04-07 08:33:14 UTC (rev 28857) @@ -721,6 +721,13 @@ - (void)updateTypeAndFields{ NSString *type = [[self publication] pubType]; + NSInteger editedRow = [itemTableView editedTextRow]; + NSString *editedField = nil; + if (editedRow != -1) { + [[self window] makeFirstResponder:nil]; + editedField = [fields objectAtIndex:editedRow]; + } + [itemTypeButton selectItemWithTitle:type]; BDSKTypeManager *typeMan = [BDSKTypeManager sharedManager]; @@ -744,6 +751,12 @@ [self updateColumnWidths]; [itemTableView reloadData]; + + if (editedField && [fields containsObject:editedField]) { + editedRow = [fields indexOfObject:editedField]; + [itemTableView selectRowIndexes:[NSIndexSet indexSetWithIndex:editedRow] byExtendingSelection:NO]; + [itemTableView editColumn:2 row:editedRow withEvent:nil select:YES]; + } } - (void)updateColumnWidths { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit