Add Henkan, Muhenkan and Zenkaku entries to macOS

Note: these keys are sometimes referred as `international4` and `international5`, respectively.
This commit is contained in:
Tomoya Tanjo 2021-06-27 17:07:45 +00:00
parent eec676948c
commit 7a4c6a25d7
No known key found for this signature in database
GPG Key ID: 06CB0E740C9B8978

View File

@ -43,6 +43,9 @@ static const UInt32 s_launchpadVK = 131;
static const UInt32 s_osxNumLock = 1 << 16;
static const UInt32 s_int4VK = 0x8a; // international4
static const UInt32 s_int5VK = 0x8b; // international5
struct KeyEntry {
public:
KeyID m_keyID;
@ -126,7 +129,10 @@ static const KeyEntry s_controlKeys[] = {
// JIS keyboards only
{ kKeyEisuToggle, kVK_JIS_Eisu },
{ kKeyKana, kVK_JIS_Kana }
{ kKeyKana, kVK_JIS_Kana },
{ kKeyMuhenkan, s_int5VK },
{ kKeyHenkan, s_int4VK },
{ kKeyZenkaku, kVK_ANSI_Grave }
};