diff --git a/src/lib/platform/MSWindowsKeyState.cpp b/src/lib/platform/MSWindowsKeyState.cpp index efaa54708..7f518ce1c 100644 --- a/src/lib/platform/MSWindowsKeyState.cpp +++ b/src/lib/platform/MSWindowsKeyState.cpp @@ -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;