mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 10:19:01 +00:00
Merge pull request #122 from go-vgo/dev
fix mac input method keytap not work
This commit is contained in:
commit
2423ad940d
1 changed files with 2 additions and 3 deletions
|
|
@ -132,9 +132,8 @@ MMKeyCode keyCodeForChar(const char c)
|
|||
|
||||
#if defined(IS_MACOSX)
|
||||
|
||||
CFStringRef createStringForKey(CGKeyCode keyCode)
|
||||
{
|
||||
TISInputSourceRef currentKeyboard = TISCopyCurrentKeyboardInputSource();
|
||||
CFStringRef createStringForKey(CGKeyCode keyCode){
|
||||
TISInputSourceRef currentKeyboard = TISCopyCurrentASCIICapableKeyboardInputSource();
|
||||
CFDataRef layoutData =
|
||||
(CFDataRef)TISGetInputSourceProperty(currentKeyboard,
|
||||
kTISPropertyUnicodeKeyLayoutData);
|
||||
|
|
|
|||
Loading…
Reference in a new issue