Merge pull request #818 from tom-tan/add-eisu-muhenkan

Add key entries for `Eisu_toggle` and `Muhenkan`
This commit is contained in:
Povilas Kanapickas 2020-08-07 10:57:57 +03:00 committed by GitHub
commit 36ae769987
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,7 @@ const KeyNameMapEntry kKeyNameMap[] = {
{ "Control_R", kKeyControl_R }, { "Control_R", kKeyControl_R },
{ "Delete", kKeyDelete }, { "Delete", kKeyDelete },
{ "Down", kKeyDown }, { "Down", kKeyDown },
{ "EisuToggle", kKeyEisuToggle },
{ "Eject", kKeyEject }, { "Eject", kKeyEject },
{ "End", kKeyEnd }, { "End", kKeyEnd },
{ "Escape", kKeyEscape }, { "Escape", kKeyEscape },
@ -89,6 +90,7 @@ const KeyNameMapEntry kKeyNameMap[] = {
{ "Hyper_L", kKeyHyper_L }, { "Hyper_L", kKeyHyper_L },
{ "Hyper_R", kKeyHyper_R }, { "Hyper_R", kKeyHyper_R },
{ "Insert", kKeyInsert }, { "Insert", kKeyInsert },
{ "Kana", kKeyKana },
{ "KP_0", kKeyKP_0 }, { "KP_0", kKeyKP_0 },
{ "KP_1", kKeyKP_1 }, { "KP_1", kKeyKP_1 },
{ "KP_2", kKeyKP_2 }, { "KP_2", kKeyKP_2 },
@ -130,6 +132,7 @@ const KeyNameMapEntry kKeyNameMap[] = {
{ "Menu", kKeyMenu }, { "Menu", kKeyMenu },
{ "Meta_L", kKeyMeta_L }, { "Meta_L", kKeyMeta_L },
{ "Meta_R", kKeyMeta_R }, { "Meta_R", kKeyMeta_R },
{ "Muhenkan", kKeyMuhenkan },
{ "NumLock", kKeyNumLock }, { "NumLock", kKeyNumLock },
{ "PageDown", kKeyPageDown }, { "PageDown", kKeyPageDown },
{ "PageUp", kKeyPageUp }, { "PageUp", kKeyPageUp },

View File

@ -109,11 +109,13 @@ static const KeyID kKeyPause = 0xEF13; /* Pause, hold */
static const KeyID kKeyScrollLock = 0xEF14; static const KeyID kKeyScrollLock = 0xEF14;
static const KeyID kKeySysReq = 0xEF15; static const KeyID kKeySysReq = 0xEF15;
static const KeyID kKeyEscape = 0xEF1B; static const KeyID kKeyEscape = 0xEF1B;
static const KeyID kKeyMuhenkan = 0xEF22; /* Cancel Conversion */
static const KeyID kKeyHenkan = 0xEF23; /* Start/Stop Conversion */ static const KeyID kKeyHenkan = 0xEF23; /* Start/Stop Conversion */
static const KeyID kKeyKana = 0xEF26; /* Kana */ static const KeyID kKeyKana = 0xEF26; /* Kana */
static const KeyID kKeyHiraganaKatakana = 0xEF27; /* Hiragana/Katakana toggle */ static const KeyID kKeyHiraganaKatakana = 0xEF27; /* Hiragana/Katakana toggle */
static const KeyID kKeyZenkaku = 0xEF2A; /* Zenkaku/Hankaku */ static const KeyID kKeyZenkaku = 0xEF2A; /* Zenkaku/Hankaku */
static const KeyID kKeyKanzi = 0xEF2A; /* Kanzi */ static const KeyID kKeyKanzi = 0xEF2A; /* Kanzi */
static const KeyID kKeyEisuToggle = 0xEF30; /* Alphanumeric toggle */
static const KeyID kKeyHangul = 0xEF31; /* Hangul */ static const KeyID kKeyHangul = 0xEF31; /* Hangul */
static const KeyID kKeyHanja = 0xEF34; /* Hanja */ static const KeyID kKeyHanja = 0xEF34; /* Hanja */
static const KeyID kKeyDelete = 0xEFFF; /* Delete, rubout */ static const KeyID kKeyDelete = 0xEFFF; /* Delete, rubout */