IJTableView.m 426 B

12345678910111213141516171819202122232425
  1. //
  2. // IJTableView.m
  3. // InsideJob
  4. //
  5. // Created by Adam Preble on 12/14/10.
  6. // Copyright 2010 Adam Preble. All rights reserved.
  7. //
  8. #import "IJTableView.h"
  9. @implementation IJTableView
  10. - (void)keyDown:(NSEvent *)theEvent
  11. {
  12. unichar ch = [[theEvent characters] characterAtIndex:0];
  13. if (ch == '\r') // return key
  14. {
  15. [self sendAction:[self doubleAction] to:[self target]];
  16. return;
  17. }
  18. [super keyDown:theEvent];
  19. }
  20. @end