Fix keycode problem on OSX
This commit is contained in:
parent
aec8ea4f47
commit
ca2476cdb4
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user