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);