All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ui/cocoa: Support unique keys of JIS keyboards
@ 2021-02-12  0:04 Akihiko Odaki
  2021-02-17 12:38 ` Gerd Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Akihiko Odaki @ 2021-02-12  0:04 UTC (permalink / raw)
  Cc: peter.maydell, kraxel, Akihiko Odaki, qemu-devel

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
---
 ui/cocoa.m | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ui/cocoa.m b/ui/cocoa.m
index 13fba8103e1..78fcfeaf04b 100644
--- a/ui/cocoa.m
+++ b/ui/cocoa.m
@@ -240,6 +240,13 @@ static bool bool_with_iothread_lock(BoolCodeBlock block)
     [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.24.3 (Apple Git-128)



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ui/cocoa: Support unique keys of JIS keyboards
  2021-02-12  0:04 [PATCH] ui/cocoa: Support unique keys of JIS keyboards Akihiko Odaki
@ 2021-02-17 12:38 ` Gerd Hoffmann
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2021-02-17 12:38 UTC (permalink / raw)
  To: Akihiko Odaki; +Cc: peter.maydell, qemu-devel

> +    // 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,

Added to UI patch queue.

thanks,
  Gerd



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-17 12:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-12  0:04 [PATCH] ui/cocoa: Support unique keys of JIS keyboards Akihiko Odaki
2021-02-17 12:38 ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.