fix(windows): send space for ctrl+space and shift+space with korean IME

This commit is contained in:
ChangMin Oh 2026-08-12 16:18:30 +09:00 committed by Nick Bolton
parent a6e98c1ac1
commit fdc61ac3cd

View file

@ -1278,6 +1278,11 @@ KeyID MSWindowsKeyState::getKeyID(UINT virtualKey, KeyButton button) const
// But they have different X11 keysym. So we should distinguish them.
if ((LOWORD(m_keyLayout) & 0xffffu) == 0x0412u) { // 0x0412 : Korean Locale ID
if (virtualKey == VK_HANGUL || virtualKey == VK_HANJA) {
const auto hangulSpace = 0x0039u;
if (button == hangulSpace) {
return VK_SPACE;
}
// If shift-space is used to change the input mode,
// the extented bit is not set. So add it to get right key id.
button |= 0x100u;