Skip to content

Commit

Permalink
Merge pull request debauchee#832 from tom-tan/add-os-barrier-keymap-f…
Browse files Browse the repository at this point in the history
…or-jis-kbd

Add key mappings for `Kana`, `Eisu_toggle` and `Muhenkan`
  • Loading branch information
p12tic authored Aug 22, 2020
2 parents d58a9fb + 4aefd64 commit b204520
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/platform/MSWindowsKeyState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion src/lib/platform/OSXKeyState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
};


Expand Down

0 comments on commit b204520

Please sign in to comment.