From 0045e188077711d1ed46dfbc7a84966fdb6991bb Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Tue, 6 Dec 2016 10:59:53 -0600 Subject: [PATCH] Fix createStringForKey failure on Mac OS for non-Latin languages --- src/keycode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keycode.c b/src/keycode.c index ba47182a..235482eb 100644 --- a/src/keycode.c +++ b/src/keycode.c @@ -134,7 +134,7 @@ MMKeyCode keyCodeForChar(const char c) CFStringRef createStringForKey(CGKeyCode keyCode) { - TISInputSourceRef currentKeyboard = TISCopyCurrentKeyboardInputSource(); + TISInputSourceRef currentKeyboard = TISCopyCurrentASCIICapableKeyboardInputSource(); CFDataRef layoutData = TISGetInputSourceProperty(currentKeyboard, kTISPropertyUnicodeKeyLayoutData);