aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableView.m')
-rw-r--r--Source/SPTableView.m14
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m
index c19678db..7e212884 100644
--- a/Source/SPTableView.m
+++ b/Source/SPTableView.m
@@ -94,10 +94,16 @@
// ENTER or RETURN closes the SPFieldMapperController sheet by sending an object with the tag 1
if([[[[self delegate] class] description] isEqualToString:@"SPFieldMapperController"]) {
- NSButton *b = [[[NSButton alloc] init] autorelease];
- [b setTag:1];
- [[self delegate] closeSheet:b];
- return;
+ if([[self delegate] canBeClosed]) {
+ NSButton *b = [[[NSButton alloc] init] autorelease];
+ [b setTag:1];
+ [[self delegate] closeSheet:b];
+ return;
+ } else {
+ [super keyDown:theEvent];
+ return;
+ }
+
}
if (![[[[self delegate] class] description] isEqualToString:@"SPCustomQuery"] &&