From e03c42246d5b1f926842b900688568776c715cdb Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 27 Aug 2009 07:08:05 +0000 Subject: =?UTF-8?q?=E2=80=A2=20improvement=20for=20hitting=20RETURN=20or?= =?UTF-8?q?=20ENTER=20to=20invoke=20the=20row=20edit=20mode=20-=20fixed=20?= =?UTF-8?q?that=20the=20table=20is=20selectable=20again=20-=20hitting=20EN?= =?UTF-8?q?TER/RETURN=20are=20enabled=20only=20for=20TableContent=20and=20?= =?UTF-8?q?ask=20the=20delegate's=20tableView:shouldEditTableColumn:=20met?= =?UTF-8?q?hod=20for=20validation=20(by=20doing=20so=20a=20RETURN/ENTER=20?= =?UTF-8?q?is=20the=20same=20event=20as=20a=20double-click=20into=20a=20ta?= =?UTF-8?q?ble=20cell=20for=20column=200=20if=20table=20is=20in=20non-edit?= =?UTF-8?q?ing=20mode)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTableView.m | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'Source/SPTableView.m') diff --git a/Source/SPTableView.m b/Source/SPTableView.m index f6af2c16..4d97b6bb 100644 --- a/Source/SPTableView.m +++ b/Source/SPTableView.m @@ -59,15 +59,4 @@ return YES; } -- (void)keyDown:(NSEvent *)theEvent -{ - if([self numberOfSelectedRows] == 1 && ([theEvent keyCode] == 36 || [theEvent keyCode] == 76)) - { - [self editColumn:0 row:[self selectedRow] withEvent:nil select:YES]; - } - else { - [super keyDown:theEvent]; - } -} - @end -- cgit v1.2.3