Skip to content

Commit 52e25ac

Browse files
authored
Fix bug for get natice keycode failed in mac (#66)
TISCopyCurrentKeyboardInputSource will return null when using Chinese input method. Use TISCopyCurrentASCIICapableKeyboardLayoutInputSource instead.
1 parent 308c96c commit 52e25ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

QHotkey/qhotkey_mac.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ quint32 QHotkeyPrivateMac::nativeKeycode(Qt::Key keycode, bool &ok)
134134
UTF16Char ch = keycode;
135135

136136
CFDataRef currentLayoutData;
137-
TISInputSourceRef currentKeyboard = TISCopyCurrentKeyboardInputSource();
137+
TISInputSourceRef currentKeyboard = TISCopyCurrentASCIICapableKeyboardLayoutInputSource();
138138

139139
if (currentKeyboard == NULL)
140140
return 0;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy