home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Utilities / NCCompletionDictionary-2.6 / NCTextView.m < prev    next >
Encoding:
Text File  |  1997-08-10  |  448 b   |  26 lines

  1.  
  2. // NCTextView.m
  3. //
  4. // Written by Norbert Heger <bertl@hal.kph.tuwien.ac.at>
  5. // Copyright (c)1997
  6. //
  7. // This file is distributed under the terms of the
  8. // GNU General Public License.
  9.  
  10. #import "NCTextView.h"
  11.  
  12. @implementation NCTextView
  13.  
  14. - (void)keyDown:(NSEvent *)event
  15. {
  16.     NSString *string = [event characters];
  17.  
  18.     if ([string isEqualToString:@"{"]) {
  19.         [self insertText:string];
  20.     } else {
  21.         [super keyDown:event];
  22.     }
  23. }
  24.  
  25. @end
  26.