Fix keycode problem on OSX

This commit is contained in:
Naoto Kondo 2018-11-01 20:00:02 +09:00
parent aec8ea4f47
commit ca2476cdb4

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);