projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4f2805
)
ui/cocoa: Support unique keys of JIS keyboards
author
Akihiko Odaki
<akihiko.odaki@gmail.com>
Fri, 12 Feb 2021 00:04:04 +0000
(09:04 +0900)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 19 Feb 2021 14:00:12 +0000
(15:00 +0100)
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
patch
|
blob
|
history
diff --git
a/ui/cocoa.m
b/ui/cocoa.m
index 13fba8103e1a50334a31d936669c5a2a39c4f71c..78fcfeaf04b7b85c617c7540307e65d805646a53 100644
(file)
--- 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.