fix(windows): send space for ctrl+space and shift+space with korean IME
This commit is contained in:
parent
a6e98c1ac1
commit
fdc61ac3cd
1 changed files with 5 additions and 0 deletions
|
|
@ -1278,6 +1278,11 @@ KeyID MSWindowsKeyState::getKeyID(UINT virtualKey, KeyButton button) const
|
||||||
// But they have different X11 keysym. So we should distinguish them.
|
// But they have different X11 keysym. So we should distinguish them.
|
||||||
if ((LOWORD(m_keyLayout) & 0xffffu) == 0x0412u) { // 0x0412 : Korean Locale ID
|
if ((LOWORD(m_keyLayout) & 0xffffu) == 0x0412u) { // 0x0412 : Korean Locale ID
|
||||||
if (virtualKey == VK_HANGUL || virtualKey == VK_HANJA) {
|
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,
|
// If shift-space is used to change the input mode,
|
||||||
// the extented bit is not set. So add it to get right key id.
|
// the extented bit is not set. So add it to get right key id.
|
||||||
button |= 0x100u;
|
button |= 0x100u;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue