summaryrefslogtreecommitdiffstats
path: root/src/uimac/ProfileTableView.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/uimac/ProfileTableView.m')
-rw-r--r--src/uimac/ProfileTableView.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/uimac/ProfileTableView.m b/src/uimac/ProfileTableView.m
new file mode 100644
index 0000000..07c1df6
--- /dev/null
+++ b/src/uimac/ProfileTableView.m
@@ -0,0 +1,18 @@
+#import "ProfileTableView.h"
+
+@implementation ProfileTableView
+
+- (void)keyDown:(NSEvent *)event
+{
+ unichar c = [[event characters] characterAtIndex:0];
+ switch (c) {
+ case '\r':
+ [myController openButton:self];
+ break;
+ default:
+ [super keyDown:event];
+ break;
+ }
+}
+
+@end