diff options
author | Naoto Kondo <cgigcp3yqt@gmail.com> | 2018-11-01 20:00:02 +0900 |
---|---|---|
committer | Naoto Kondo <cgigcp3yqt@gmail.com> | 2018-11-01 20:00:02 +0900 |
commit | ca2476cdb43e776b0aec0deae5034babd7eb3930 (patch) | |
tree | aa6af34af76417307d6ff6479305752d6ff1e63b /platform/osx/os_osx.mm | |
parent | aec8ea4f47af23e6acff181189bbbfaf7f3d18f5 (diff) |
Fix keycode problem on OSX
Diffstat (limited to 'platform/osx/os_osx.mm')
-rw-r--r-- | platform/osx/os_osx.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index b84e22f53c..1a5a56e933 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -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); |