diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-09-03 21:15:32 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-09-03 21:15:32 +0000 |
commit | 7a5af6632f0c6797466372358327ddd75a4e7f22 (patch) | |
tree | b1b802ca9a165c16968d7f6c794b95b9aa61fb0a /Source/SPTableView.m | |
parent | 61adeb9f4ad973a93ce35ac4ebf6068f2beac6ca (diff) | |
download | sequelpro-7a5af6632f0c6797466372358327ddd75a4e7f22.tar.gz sequelpro-7a5af6632f0c6797466372358327ddd75a4e7f22.tar.bz2 sequelpro-7a5af6632f0c6797466372358327ddd75a4e7f22.zip |
• further improvements for CSV import into new table
- fixed some RETURN/ENTER logic while editing a table cell
- added context menu to table for:
-- 'Set all Field Types to:' which sets all types to the current selected one ⌘=
-- 'Add Column to Table Target' (not yet implemented)
- some minor code issues
- added Info button which will come up with a GUI for setting new table encoding and engine (not yet implemented)
Diffstat (limited to 'Source/SPTableView.m')
-rw-r--r-- | Source/SPTableView.m | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m index 7e212884..c3f76baf 100644 --- a/Source/SPTableView.m +++ b/Source/SPTableView.m @@ -92,8 +92,15 @@ 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"]) { + + if([[self delegate] isGlobalValueSheetOpen]) { + [[self delegate] closeGlobalValuesSheet:nil]; + return; + } + + // ENTER or RETURN closes the SPFieldMapperController sheet + // by sending an object with the tag 1 if no table cell is edited if([[self delegate] canBeClosed]) { NSButton *b = [[[NSButton alloc] init] autorelease]; [b setTag:1]; @@ -117,6 +124,7 @@ [self editColumn:0 row:[self selectedRow] withEvent:nil select:YES]; return; } + } [super keyDown:theEvent]; |