From 9018787f43507f525ed0aa5036d21017cc8846a2 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Sat, 30 Oct 2010 00:12:07 +0000 Subject: =?UTF-8?q?=E2=80=A2=20enabled=20enter/return/tab=20enters=20the?= =?UTF-8?q?=20edit=20mode=20for=20Content=20and=20Custom=20Query=20table?= =?UTF-8?q?=20-=20it=20will=20call=20[self=20editColumn:0=20row:[self=20se?= =?UTF-8?q?lectedRow]=20withEvent:nil=20select:YES];=20to=20invoke=20the?= =?UTF-8?q?=20incell=20edit=20mode,=20if=20user=20tries=20to=20modify=20it?= =?UTF-8?q?=20the=20sheet=20will=20be=20displayed=20if=20set;=20further=20?= =?UTF-8?q?improvements=20will=20follow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPCopyTable.m | 3 ++- Source/SPTableContent.m | 2 +- 2 files changed, 3 insertions(+), 2 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; } diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index ac76f093..c71099b8 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -4196,7 +4196,7 @@ // Check if current edited field is a blob if ((fieldType = [[tableDataInstance columnWithName:[[NSArrayObjectAtIndex([tableContentView tableColumns], column) headerCell] stringValue]] objectForKey:@"typegrouping"]) - && ([fieldType isEqualToString:@"textdata"] || [fieldType isEqualToString:@"blobdata"])) + && ([fieldType isEqualToString:@"textdata"] || [fieldType isEqualToString:@"blobdata"] || [multipleLineEditingButton state] == NSOnState)) { // Cancel editing [control abortEditing]; -- cgit v1.2.3