summaryrefslogtreecommitdiff
path: root/platform/osx/os_osx.mm
diff options
context:
space:
mode:
authorNaoto Kondo <cgigcp3yqt@gmail.com>2018-11-01 20:00:02 +0900
committerNaoto Kondo <cgigcp3yqt@gmail.com>2018-11-01 20:00:02 +0900
commitca2476cdb43e776b0aec0deae5034babd7eb3930 (patch)
treeaa6af34af76417307d6ff6479305752d6ff1e63b /platform/osx/os_osx.mm
parentaec8ea4f47af23e6acff181189bbbfaf7f3d18f5 (diff)
Fix keycode problem on OSX
Diffstat (limited to 'platform/osx/os_osx.mm')
-rw-r--r--platform/osx/os_osx.mm2
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);