mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
fix mac input method keytap not work
This commit is contained in:
parent
19204ae7f9
commit
e0a5aabf28
@ -132,9 +132,8 @@ MMKeyCode keyCodeForChar(const char c)
|
|||||||
|
|
||||||
#if defined(IS_MACOSX)
|
#if defined(IS_MACOSX)
|
||||||
|
|
||||||
CFStringRef createStringForKey(CGKeyCode keyCode)
|
CFStringRef createStringForKey(CGKeyCode keyCode){
|
||||||
{
|
TISInputSourceRef currentKeyboard = TISCopyCurrentASCIICapableKeyboardInputSource();
|
||||||
TISInputSourceRef currentKeyboard = TISCopyCurrentKeyboardInputSource();
|
|
||||||
CFDataRef layoutData =
|
CFDataRef layoutData =
|
||||||
(CFDataRef)TISGetInputSourceProperty(currentKeyboard,
|
(CFDataRef)TISGetInputSourceProperty(currentKeyboard,
|
||||||
kTISPropertyUnicodeKeyLayoutData);
|
kTISPropertyUnicodeKeyLayoutData);
|
||||||
|
Loading…
Reference in New Issue
Block a user