From: gsittyz Date: Sun, 25 Oct 2020 05:34:45 +0000 (+0900) Subject: OS X Japanese Keyboard Support X-Git-Tag: v1.11.90~82^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b2a09a2c314866a9c5ae30497d93316372bab13b;p=tigervnc.git 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. --- 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)