home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Games / NeXTGo-3.0-MIS / GoWindow.m < prev    next >
Encoding:
Text File  |  1997-08-16  |  308 b   |  19 lines

  1.  
  2. #import "GoWindow.h"
  3. #import "GoApp.h"
  4.  
  5. @implementation GoWindow
  6.  
  7. - (void)keyDown:(NSEvent *)theEvent  {
  8.     if([ControlPanel isVisible]) {
  9.         [ControlPanel makeKeyAndOrderFront:self];
  10.         [ControlPanel sendEvent:theEvent];
  11.         [NSApp setCommandSender:self];
  12.         return;
  13.     }
  14.     else 
  15.         [super keyDown:theEvent];
  16. }
  17.  
  18. @end
  19.