Changeset 740 for trunk/macosx/PrefsWindow.m
- Timestamp:
- Aug 8, 2006, 2:11:51 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/PrefsWindow.m
r726 r740 27 27 @implementation PrefsWindow 28 28 29 - (void) keyDown: (NSEvent *) event29 - (void) keyDown: (NSEvent *) event 30 30 { 31 [super keyDown: event]; 31 32 if ([event keyCode] == 53) //esc key 32 33 [self close]; 33 34 } 34 35 36 - (void) windowWillClose: (NSNotification *) notification 37 { 38 [self makeFirstResponder: nil]; //essentially saves changes on window close 39 } 40 35 41 @end
Note: See TracChangeset
for help on using the changeset viewer.