src/video/cocoa/SDL_cocoaevents.m
changeset 8250 e671ec6b22dd
parent 8239 05cbb1cb4f27
child 8289 d2acd700f8f7
equal deleted inserted replaced
8249:294f28074ecc 8250:e671ec6b22dd
   269 
   269 
   270         if ([NSApp mainMenu] == nil) {
   270         if ([NSApp mainMenu] == nil) {
   271             CreateApplicationMenus();
   271             CreateApplicationMenus();
   272         }
   272         }
   273         [NSApp finishLaunching];
   273         [NSApp finishLaunching];
   274         NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"NO" forKey:@"AppleMomentumScrollSupported"];
   274         NSDictionary *appDefaults = @{
       
   275             @"AppleMomentumScrollSupported": @NO,
       
   276             @"ApplePressAndHoldEnabled": @NO,
       
   277         };
   275         [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
   278         [[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
   276 
   279 
   277     }
   280     }
   278     if (NSApp && !appDelegate) {
   281     if (NSApp && !appDelegate) {
   279         appDelegate = [[SDLAppDelegate alloc] init];
   282         appDelegate = [[SDLAppDelegate alloc] init];