From eec676948c5f84515bf2228743ddfdfe0290bb89 Mon Sep 17 00:00:00 2001 From: Tomoya Tanjo Date: Sun, 27 Jun 2021 17:05:26 +0000 Subject: [PATCH] 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 --- src/lib/platform/MSWindowsKeyState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/platform/MSWindowsKeyState.cpp b/src/lib/platform/MSWindowsKeyState.cpp index 0daa8ee8..e1072c40 100644 --- a/src/lib/platform/MSWindowsKeyState.cpp +++ b/src/lib/platform/MSWindowsKeyState.cpp @@ -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