aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCustomQuery.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/SPCustomQuery.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/SPCustomQuery.m')
-rw-r--r--Source/SPCustomQuery.m13
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m
index 5eea9f6f..011cdc09 100644
--- a/Source/SPCustomQuery.m
+++ b/Source/SPCustomQuery.m
@@ -3408,9 +3408,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(isFieldEditable) {
@@ -3428,6 +3434,9 @@
if (selectionIndexToRestore)
[customQueryView selectRowIndexes:selectionIndexToRestore byExtendingSelection:NO];
+ if(row > -1 && column > -1)
+ [customQueryView editColumn:column row:row withEvent:nil select:YES];
+
}
#pragma mark -