diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-09-03 10:53:26 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-09-03 10:53:26 +0000 |
commit | ca60d2e7bdec4763489e79ff4c457c32cd1f57db (patch) | |
tree | 85ba4e228f51ec6975833d3e2a8a7b0860f0df8e /Source/SPTableView.m | |
parent | 4aaa7dda2d01afbebb9f7c2a6ba8537a3206858a (diff) | |
download | sequelpro-ca60d2e7bdec4763489e79ff4c457c32cd1f57db.tar.gz sequelpro-ca60d2e7bdec4763489e79ff4c457c32cd1f57db.tar.bz2 sequelpro-ca60d2e7bdec4763489e79ff4c457c32cd1f57db.zip |
• finished the first implementation of CSV Import into new table
note:What else is needed for such an import? table encoding settings? ... has to be discussed
Diffstat (limited to 'Source/SPTableView.m')
-rw-r--r-- | Source/SPTableView.m | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m index 8255f9c1..c19678db 100644 --- a/Source/SPTableView.m +++ b/Source/SPTableView.m @@ -87,9 +87,19 @@ - (void)keyDown:(NSEvent *)theEvent { + // Check if ENTER or RETURN is hit and edit the column. if([self numberOfSelectedRows] == 1 && ([theEvent keyCode] == 36 || [theEvent keyCode] == 76)) { + + // 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] class] description] isEqualToString:@"SPCustomQuery"] && ![[[[self delegate] class] description] isEqualToString:@"SPQueryFavoriteManager"]){ |