Merge pull request #23431 from buresu/fix-keycode

Fix keycode problem on OSX
This commit is contained in:
Rémi Verschelde 2018-11-02 11:02:39 +01:00 committed by GitHub
commit 63d7c9be45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -934,7 +934,7 @@ static int remapKey(unsigned int key) {
CFDataRef layoutData = (CFDataRef)TISGetInputSourceProperty(currentKeyboard, kTISPropertyUnicodeKeyLayoutData);
if (!layoutData)
return 0;
return translateKey(key);
const UCKeyboardLayout *keyboardLayout = (const UCKeyboardLayout *)CFDataGetBytePtr(layoutData);