diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-11-02 11:02:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-02 11:02:39 +0100 |
commit | 63d7c9be45025bf9901f81833764284d30b70cfd (patch) | |
tree | 2399b9fb951f9c3106864faaa548a65782af1570 | |
parent | c025f526c8fd4b96fb12a0a7e2141f59997e80d1 (diff) | |
parent | ca2476cdb43e776b0aec0deae5034babd7eb3930 (diff) |
Merge pull request #23431 from buresu/fix-keycode
Fix keycode problem on OSX
-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 5b60e1b633..77bf8a8146 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); |