aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-10-30 08:28:46 +0000
committerBibiko <bibiko@eva.mpg.de>2010-10-30 08:28:46 +0000
commit27122d036b690c1e3601f219a0aa69d6ce52addf (patch)
treea1a2f00f25176d2bffc3b5786b93d4dd3579e387 /Source/SPTableContent.m
parent9018787f43507f525ed0aa5036d21017cc8846a2 (diff)
downloadsequelpro-27122d036b690c1e3601f219a0aa69d6ce52addf.tar.gz
sequelpro-27122d036b690c1e3601f219a0aa69d6ce52addf.tar.bz2
sequelpro-27122d036b690c1e3601f219a0aa69d6ce52addf.zip
• after the field editor sheet was closed enter into the edit mode of the current table cell; this makes it rather convenient to navigate and edit cells via keyboard or mouse for each mode (field editor or incell); the sheet will be ordered out if user tries to modify the current cell if set or blob
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m13
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index c71099b8..19d9a6b6 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -2884,9 +2884,15 @@
- (void)processFieldEditorResult:(id)data contextInfo:(NSDictionary*)contextInfo
{
+ NSInteger row = -1;
+ NSInteger column = -1;
+
+ if(contextInfo) {
+ row = [[contextInfo objectForKey:@"row"] integerValue];
+ column = [[contextInfo objectForKey:@"column"] integerValue];
+ }
+
if (data && contextInfo) {
- NSUInteger row = [[contextInfo objectForKey:@"row"] integerValue];
- NSUInteger column = [[contextInfo objectForKey:@"column"] integerValue];
BOOL isFieldEditable = ([contextInfo objectForKey:@"isFieldEditable"]) ? YES : NO;
if (!isEditingRow && [tablesListInstance tableType] != SPTableTypeView) {
[oldRow setArray:[tableValues rowContentsAtIndex:row]];
@@ -2918,6 +2924,9 @@
}
[[tableDocumentInstance parentWindow] makeFirstResponder:tableContentView];
+
+ if(row > -1 && column > -1)
+ [tableContentView editColumn:column row:row withEvent:nil select:YES];
}
#pragma mark -