aboutsummaryrefslogtreecommitdiff
path: root/platform/osx
diff options
context:
space:
mode:
authorRhody Lugo2015-01-08 10:31:10 -0430
committerRhody Lugo2015-01-08 10:31:10 -0430
commit08cfad00ddf7990b16855c28ade237e79bd52afe (patch)
treed2b57a4110c9dc46994b457fd9caaafebefa9ad6 /platform/osx
parentd046bd88ad84f99789fbc7e544e8c8b929f14faf (diff)
downloadgodot-08cfad00ddf7990b16855c28ade237e79bd52afe.tar.gz
godot-08cfad00ddf7990b16855c28ade237e79bd52afe.tar.zst
godot-08cfad00ddf7990b16855c28ade237e79bd52afe.zip
Create the test string to detect kb layouts directly from the unicode chars
Diffstat (limited to 'platform/osx')
-rw-r--r--platform/osx/os_osx.mm4
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm
index f8902283c..5bc47a74c 100644
--- a/platform/osx/os_osx.mm
+++ b/platform/osx/os_osx.mm
@@ -1297,9 +1297,7 @@ static NSString *createStringForKeys(const CGKeyCode *keyCode, int length) {
return nil;
}
- CFStringRef chararter = CFStringCreateWithCharacters(kCFAllocatorDefault, chars, 1);
- CFStringAppend(output, chararter);
- CFRelease(chararter);
+ CFStringAppendCharacters(output, chars, 1);
}
//CFStringUppercase(output, NULL);