proper typing of char16_t

This commit is contained in:
shenleban tongying 2024-11-12 06:59:25 -05:00
parent d4a49fbf79
commit 384dcfbc36

View file

@ -81,7 +81,7 @@ void createMapping()
} }
} }
quint32 qtKeyToNativeKey(quint32 key) quint32 qtKeyToNativeKey(UniChar key)
{ {
createMapping(); createMapping();
if (mapping.empty()) { if (mapping.empty()) {
@ -341,7 +341,7 @@ quint32 HotkeyWrapper::nativeKey(int key)
return 0x72; return 0x72;
default:; default:;
} }
return MacKeyMapping::qtKeyToNativeKey(QChar(key).toLower().toLatin1()); return MacKeyMapping::qtKeyToNativeKey(QChar(key).toLower().unicode());
} }
void HotkeyWrapper::sendCmdC() void HotkeyWrapper::sendCmdC()