From d8a3650b1106fa8a4563e032e7ad66ca076da01b Mon Sep 17 00:00:00 2001 From: sqlprodev Date: Thu, 5 Jul 2012 17:57:24 +0000 Subject: Merged SP r3710 with Coda --- Source/SPEditSheetTextView.m | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/SPEditSheetTextView.m') diff --git a/Source/SPEditSheetTextView.m b/Source/SPEditSheetTextView.m index a5d110a6..89c6f19a 100644 --- a/Source/SPEditSheetTextView.m +++ b/Source/SPEditSheetTextView.m @@ -60,17 +60,21 @@ - (IBAction)paste:(id)sender { +#ifndef SP_REFACTOR // Try to create an undo group if([[self delegate] respondsToSelector:@selector(setWasCutPaste)]) [[self delegate] setWasCutPaste]; +#endif [super paste:sender]; } - (IBAction)cut:(id)sender { +#ifndef SP_REFACTOR // Try to create an undo group if([[self delegate] respondsToSelector:@selector(setWasCutPaste)]) [[self delegate] setWasCutPaste]; +#endif [super cut:sender]; } @@ -133,6 +137,7 @@ } } +#ifndef SP_REFACTOR // Allow undo grouping if user typed a ' ' (for word level undo) // or a RETURN but not for each char due to writing speed if([charactersIgnMod isEqualToString:@" "] @@ -141,6 +146,7 @@ ) { [[self delegate] setDoGroupDueToChars]; } +#endif [super keyDown: theEvent]; -- cgit v1.2.3