Merge pull request #23431 from buresu/fix-keycode
Fix keycode problem on OSX
This commit is contained in:
commit
63d7c9be45
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue