Ignore:
Timestamp:
Aug 8, 2006, 2:11:51 AM (16 years ago)
Author:
livings124
Message:

Allow scheduling of speed limit.
Preference window saves when closing again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsWindow.m

    r726 r740  
    2727@implementation PrefsWindow
    2828
    29 -(void) keyDown: (NSEvent *) event
     29- (void) keyDown: (NSEvent *) event
    3030{
     31    [super keyDown: event];
    3132    if ([event keyCode] == 53) //esc key
    3233        [self close];
    3334}
    3435
     36- (void) windowWillClose: (NSNotification *) notification
     37{
     38    [self makeFirstResponder: nil]; //essentially saves changes on window close
     39}
     40
    3541@end
Note: See TracChangeset for help on using the changeset viewer.