mirror of
https://github.com/yawut/SDL.git
synced 2026-07-12 23:02:11 -05:00
Mac: Fix inconsistent repeat of SDL_TEXTINPUT events on 10.7+
Due to the new "tap and hold" IME in Mountain Lion and above, we were getting inconsistent repeat of SDL_TEXTINPUT events. Disabling that functionality (since you can't see the popover anyway) solves this. Bug: https://bugzilla.libsdl.org/show_bug.cgi?id=2387
This commit is contained in:
parent
797a5bf665
commit
7430bc9fe0
|
|
@ -271,7 +271,10 @@ Cocoa_RegisterApp(void)
|
|||
CreateApplicationMenus();
|
||||
}
|
||||
[NSApp finishLaunching];
|
||||
NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"NO" forKey:@"AppleMomentumScrollSupported"];
|
||||
NSDictionary *appDefaults = @{
|
||||
@"AppleMomentumScrollSupported": @NO,
|
||||
@"ApplePressAndHoldEnabled": @NO,
|
||||
};
|
||||
[[NSUserDefaults standardUserDefaults] registerDefaults:appDefaults];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user