aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableView.m')
-rw-r--r--Source/SPTableView.m16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m
index bff7a923..f6af2c16 100644
--- a/Source/SPTableView.m
+++ b/Source/SPTableView.m
@@ -54,4 +54,20 @@
return [self menu];
}
+-(BOOL)acceptsFirstResponder
+{
+ 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