aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCopyTable.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-10-30 00:12:07 +0000
committerBibiko <bibiko@eva.mpg.de>2010-10-30 00:12:07 +0000
commit9018787f43507f525ed0aa5036d21017cc8846a2 (patch)
tree6ff24c69e3c5223a65ca17c58f59192ed2c0fd51 /Source/SPCopyTable.m
parentf6ae8533374461cb00133d4cdaaed1c4172c0940 (diff)
downloadsequelpro-9018787f43507f525ed0aa5036d21017cc8846a2.tar.gz
sequelpro-9018787f43507f525ed0aa5036d21017cc8846a2.tar.bz2
sequelpro-9018787f43507f525ed0aa5036d21017cc8846a2.zip
• enabled enter/return/tab enters the edit mode for Content and Custom Query table
- it will call [self editColumn:0 row:[self selectedRow] withEvent:nil select:YES]; to invoke the incell edit mode, if user tries to modify it the sheet will be displayed if set; further improvements will follow
Diffstat (limited to 'Source/SPCopyTable.m')
-rw-r--r--Source/SPCopyTable.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m
index 513421a0..21a1bd7f 100644
--- a/Source/SPCopyTable.m
+++ b/Source/SPCopyTable.m
@@ -742,7 +742,7 @@ NSInteger MENU_EDIT_COPY_AS_SQL = 2003;
// TODO: find a better solution HansJB
if([self numberOfSelectedRows] == 1 && ([theEvent keyCode] == 36 || [theEvent keyCode] == 76)) {
if([[self delegate] isKindOfClass:[SPCustomQuery class]] || [[self delegate] isKindOfClass:[SPTableContent class]]) {
- ;
+ [self editColumn:0 row:[self selectedRow] withEvent:nil select:YES];;
} else {
for(id item in [self tableColumns]) {
// Run in fieldEditorMode?
@@ -766,6 +766,7 @@ NSInteger MENU_EDIT_COPY_AS_SQL = 2003;
// TODO: find a better solution HansJB
else if ([theEvent keyCode] == 48 && ([[self delegate] isKindOfClass:[SPCustomQuery class]]
|| [[self delegate] isKindOfClass:[SPTableContent class]])) {
+ [self editColumn:0 row:[self selectedRow] withEvent:nil select:YES];
return;
}