From b2a09a2c314866a9c5ae30497d93316372bab13b Mon Sep 17 00:00:00 2001 From: gsittyz Date: Sun, 25 Oct 2020 14:34:45 +0900 Subject: [PATCH] OS X Japanese Keyboard Support Added OS X JIS Keyboard keys (kVK_JIS_Eisu, kvK_JIS_Kana). The Kana and Eisu keys are used to alter IME behavior, but currently the Kana key produces an unwanted space character and the Eisu key does not work. --- vncviewer/cocoa.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vncviewer/cocoa.mm b/vncviewer/cocoa.mm index 9fa5470f..891d9635 100644 --- a/vncviewer/cocoa.mm +++ b/vncviewer/cocoa.mm @@ -358,6 +358,9 @@ static const int kvk_map[][2] = { { kVK_ANSI_Keypad7, XK_KP_7 }, { kVK_ANSI_Keypad8, XK_KP_8 }, { kVK_ANSI_Keypad9, XK_KP_9 }, + // Japanese Keyboard Support + { kVK_JIS_Eisu, XK_Muhenkan }, + { kVK_JIS_Kana, XK_Hiragana_Katakana }, }; int cocoa_event_keysym(const void *event) -- 2.39.5