Skip to content

Commit 0045e18

Browse files
committed
Fix createStringForKey failure on Mac OS for non-Latin languages
1 parent 6f1ce41 commit 0045e18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/keycode.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ MMKeyCode keyCodeForChar(const char c)
134134

135135
CFStringRef createStringForKey(CGKeyCode keyCode)
136136
{
137-
TISInputSourceRef currentKeyboard = TISCopyCurrentKeyboardInputSource();
137+
TISInputSourceRef currentKeyboard = TISCopyCurrentASCIICapableKeyboardInputSource();
138138
CFDataRef layoutData =
139139
TISGetInputSourceProperty(currentKeyboard,
140140
kTISPropertyUnicodeKeyLayoutData);

0 commit comments

Comments
 (0)