aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPEditSheetTextView.m
diff options
context:
space:
mode:
authorsqlprodev <sqlprodev@northofthree.com>2012-07-05 17:57:24 +0000
committersqlprodev <sqlprodev@northofthree.com>2012-07-05 17:57:24 +0000
commitd8a3650b1106fa8a4563e032e7ad66ca076da01b (patch)
treec0c2463557610a3abfa6372df698dd6fdbe05875 /Source/SPEditSheetTextView.m
parentf834f466cb51061f40199cf63d8e1cf47b1b1794 (diff)
downloadsequelpro-d8a3650b1106fa8a4563e032e7ad66ca076da01b.tar.gz
sequelpro-d8a3650b1106fa8a4563e032e7ad66ca076da01b.tar.bz2
sequelpro-d8a3650b1106fa8a4563e032e7ad66ca076da01b.zip
Merged SP r3710 with Coda
Diffstat (limited to 'Source/SPEditSheetTextView.m')
-rw-r--r--Source/SPEditSheetTextView.m6
1 files changed, 6 insertions, 0 deletions
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];