Add `IME on` and `IME off` key entries to Windows

Note that these key codes are same as Kana and EisuToggle keys in macOS, respectively.
See also: https://docs.microsoft.com/en-US/windows-hardware/design/component-guidelines/keyboard-japan-ime#hid-usage-ps2-scan-code-and-virtual-key-code-for-imeon-key--imeoff-key
This commit is contained in:
Tomoya Tanjo 2021-06-27 17:05:26 +00:00
parent 14b5cebb62
commit eec676948c
No known key found for this signature in database
GPG Key ID: 06CB0E740C9B8978
1 changed files with 2 additions and 2 deletions

View File

@ -62,11 +62,11 @@ const KeyID MSWindowsKeyState::s_virtualKey[] =
/* 0x013 */ { kKeyPause }, // VK_PAUSE
/* 0x014 */ { kKeyCapsLock }, // VK_CAPITAL
/* 0x015 */ { kKeyNone }, // undefined
/* 0x016 */ { kKeyKana }, // VK_HANGUL, VK_KANA
/* 0x016 */ { kKeyKana }, // VK_HANGUL, VK_KANA, VK_IME_ON
/* 0x017 */ { kKeyNone }, // VK_JUNJA
/* 0x018 */ { kKeyNone }, // VK_FINAL
/* 0x019 */ { kKeyKanzi }, // VK_HANJA, VK_KANJI
/* 0x01a */ { kKeyNone }, // undefined
/* 0x01a */ { kKeyEisuToggle }, // VK_IME_OFF
/* 0x01b */ { kKeyEscape }, // VK_ESCAPE
/* 0x01c */ { kKeyHenkan }, // VK_CONVERT
/* 0x01d */ { kKeyMuhenkan }, // VK_NONCONVERT