[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 3/8] ui/cocoa: Support unique keys of JIS keyboards
From: |
Gerd Hoffmann |
Subject: |
[PULL 3/8] ui/cocoa: Support unique keys of JIS keyboards |
Date: |
Fri, 19 Feb 2021 23:00:31 +0100 |
From: Akihiko Odaki <akihiko.odaki@gmail.com>
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20210212000404.28413-1-akihiko.odaki@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
ui/cocoa.m | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/ui/cocoa.m b/ui/cocoa.m
index 13fba8103e1a..78fcfeaf04b7 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -240,6 +240,13 @@ const int mac_to_qkeycode_map[] = {
[kVK_F14] = Q_KEY_CODE_SCROLL_LOCK,
[kVK_F15] = Q_KEY_CODE_PAUSE,
+ // JIS keyboards only
+ [kVK_JIS_Yen] = Q_KEY_CODE_YEN,
+ [kVK_JIS_Underscore] = Q_KEY_CODE_RO,
+ [kVK_JIS_KeypadComma] = Q_KEY_CODE_KP_COMMA,
+ [kVK_JIS_Eisu] = Q_KEY_CODE_MUHENKAN,
+ [kVK_JIS_Kana] = Q_KEY_CODE_HENKAN,
+
/*
* The eject and volume keys can't be used here because they are handled at
* a lower level than what an Application can see.
--
2.29.2
- [PULL 0/8] Ui 20210219 patches, Gerd Hoffmann, 2021/02/19
- [PULL 3/8] ui/cocoa: Support unique keys of JIS keyboards,
Gerd Hoffmann <=
- [PULL 4/8] ui/cocoa: Do not copy members of pixman image, Gerd Hoffmann, 2021/02/19
- [PULL 2/8] spice: flush drawing before notifying client, Gerd Hoffmann, 2021/02/19
- [PULL 7/8] ui/cocoa: Statically allocate dcl, Gerd Hoffmann, 2021/02/19
- [PULL 8/8] ui/console: Remove dpy_gl_ctx_get_current, Gerd Hoffmann, 2021/02/19
- [PULL 6/8] ui/cocoa: Interpret left button down as is when command is pressed, Gerd Hoffmann, 2021/02/19
- [PULL 1/8] spice: flush on GL update before notifying client, Gerd Hoffmann, 2021/02/19
- [PULL 5/8] spice-app: avoid crash when core spice module doesn't loaded, Gerd Hoffmann, 2021/02/19
- Re: [PULL 0/8] Ui 20210219 patches, Peter Maydell, 2021/02/20