Merge pull request #832 from tom-tan/add-os-barrier-keymap-for-jis-kbd

Add key mappings for `Kana`, `Eisu_toggle` and `Muhenkan`
This commit is contained in:
Povilas Kanapickas 2020-08-22 13:47:35 +03:00 committed by GitHub
commit b204520864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -69,7 +69,7 @@ const KeyID MSWindowsKeyState::s_virtualKey[] =
/* 0x01a */ { kKeyNone }, // undefined
/* 0x01b */ { kKeyEscape }, // VK_ESCAPE
/* 0x01c */ { kKeyHenkan }, // VK_CONVERT
/* 0x01d */ { kKeyNone }, // VK_NONCONVERT
/* 0x01d */ { kKeyMuhenkan }, // VK_NONCONVERT
/* 0x01e */ { kKeyNone }, // VK_ACCEPT
/* 0x01f */ { kKeyNone }, // VK_MODECHANGE
/* 0x020 */ { kKeyNone }, // VK_SPACE

View File

@ -122,7 +122,11 @@ static const KeyEntry s_controlKeys[] = {
{ kKeyMissionControl, s_missionControlVK },
{ kKeyLaunchpad, s_launchpadVK },
{ kKeyBrightnessUp, s_brightnessUp },
{ kKeyBrightnessDown, s_brightnessDown }
{ kKeyBrightnessDown, s_brightnessDown },
// JIS keyboards only
{ kKeyEisuToggle, kVK_JIS_Eisu },
{ kKeyKana, kVK_JIS_Kana }
};