Revision: 26364 http://sourceforge.net/p/bibdesk/svn/26364 Author: hofman Date: 2021-07-06 22:23:34 +0000 (Tue, 06 Jul 2021) Log Message: ----------- note end of edit on cancelOperation
Modified Paths: -------------- trunk/bibdesk/BDSKEditor.m Modified: trunk/bibdesk/BDSKEditor.m =================================================================== --- trunk/bibdesk/BDSKEditor.m 2021-07-06 22:21:20 UTC (rev 26363) +++ trunk/bibdesk/BDSKEditor.m 2021-07-06 22:23:34 UTC (rev 26364) @@ -2296,15 +2296,21 @@ - (BOOL)control:(NSControl *)control textView:(NSTextView *)textView doCommandBySelector:(SEL)commandSelector { NSInteger row = [tableView rowForView:control]; - if (row == -1) { + if (commandSelector == @selector(cancelOperation:)) { + if (editorFlags.isEditing) { + [[self document] objectDidEndEditing:(id)self]; + editorFlags.isEditing = NO; + } + if (row != -1) + [tableCellFormatter setEditAsComplexString:NO]; return NO; + } else if (row == -1) { + return NO; } else if (commandSelector == @selector(insertTab:)) { row++; } else if (commandSelector == @selector(insertBacktab:)) { row--; } else if (commandSelector != @selector(insertNewline:)) { - if (commandSelector == @selector(cancelOperation:)) - [tableCellFormatter setEditAsComplexString:NO]; return NO; } if (row == -1) 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