From ca2476cdb43e776b0aec0deae5034babd7eb3930 Mon Sep 17 00:00:00 2001 From: Naoto Kondo Date: Thu, 1 Nov 2018 20:00:02 +0900 Subject: Fix keycode problem on OSX --- platform/osx/os_osx.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/osx/os_osx.mm') 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); -- cgit v1.2.3