Cocoa: Fix some characters not repeating

Fixes #1010.
This commit is contained in:
Camilla Löwy
2017-08-23 18:24:29 +02:00
parent 2f8b71d7a1
commit 58a247b26d
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -999,6 +999,13 @@ static GLFWbool initializeAppKit(void)
[NSApp setDelegate:_glfw.ns.delegate];
[NSApp run];
// Press and Hold prevents some keys from emitting repeated characters
NSDictionary* defaults =
[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:NO],
@"ApplePressAndHoldEnabled",
nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
return GLFW_TRUE;
}