aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableView.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableView.m')
-rw-r--r--Source/SPTableView.m15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m
index 4d97b6bb..cf93f143 100644
--- a/Source/SPTableView.m
+++ b/Source/SPTableView.m
@@ -59,4 +59,19 @@
return YES;
}
+- (void)keyDown:(NSEvent *)theEvent
+{
+ // Check if ENTER or RETURN is hit and edit the column.
+ if([self numberOfSelectedRows] == 1 && ([theEvent keyCode] == 36 || [theEvent keyCode] == 76))
+ {
+ if (![[[[self delegate] class] description] isEqualToString:@"CustomQuery"]){
+ [self editColumn:0 row:[self selectedRow] withEvent:nil select:YES];
+ return;
+ }
+ }
+
+ [super keyDown:theEvent];
+
+}
+
@end