HotKey icon indicating copy to clipboard operation
HotKey copied to clipboard

Can you support JIS keyboards?

Open marvelph opened this issue 1 year ago • 1 comments

Apple's Japanese keyboard has five special keys. https://www.apple.com/shop/product/MXK83J/A/magic-keyboard-with-touch-id-and-numeric-keypad-for-mac-models-with-apple-silicon-usb-c-japanese-black-keys

The key code constants are as follows. kVK_JIS_Yen kVK_JIS_Underscore kVK_JIS_KeypadComma kVK_JIS_Eisu kVK_JIS_Kana

It would be great if these keys were supported.

marvelph avatar Nov 23 '24 13:11 marvelph

The characters assigned to these keys are as follows.

kVK_JIS_Yen         : "¥"
kVK_JIS_Underscore  : "_"
kVK_JIS_KeypadComma : ","
kVK_JIS_Eisu        : "英数"
kVK_JIS_Kana        : "かな"

In addition, some keys on Japanese keyboards have different character and keycode assignments.

kVK_ANSI_Equal        : "=" -> "^"
kVK_ANSI_Quote        : "'" -> ":"
kVK_ANSI_LeftBracket  : "[" -> "@"
kVK_ANSI_RightBracket : "]" -> "["
kVK_ANSI_Backslash    : "\" -> "]"

marvelph avatar Nov 30 '24 02:11 marvelph