Skip to content

Commit

Permalink
Add Henkan, Muhenkan and Zenkaku entries to macOS
Browse files Browse the repository at this point in the history
Note: these keys are sometimes referred as `international4` and `international5`, respectively.
  • Loading branch information
tom-tan committed Jun 27, 2021
1 parent eec6769 commit 7a4c6a2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/platform/OSXKeyState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 }
};


Expand Down

0 comments on commit 7a4c6a2

Please sign in to comment.