Skip to content

Commit

Permalink
Fix createStringForKey failure on Mac OS for non-Latin languages
Browse files Browse the repository at this point in the history
  • Loading branch information
hristoterezov committed May 4, 2017
1 parent 6f1ce41 commit 0045e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keycode.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ MMKeyCode keyCodeForChar(const char c)

CFStringRef createStringForKey(CGKeyCode keyCode)
{
TISInputSourceRef currentKeyboard = TISCopyCurrentKeyboardInputSource();
TISInputSourceRef currentKeyboard = TISCopyCurrentASCIICapableKeyboardInputSource();
CFDataRef layoutData =
TISGetInputSourceProperty(currentKeyboard,
kTISPropertyUnicodeKeyLayoutData);
Expand Down

0 comments on commit 0045e18

Please sign in to comment.