All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] input: Add lang1 and lang2 to QKeyCode
@ 2021-06-17  2:31 Akihiko Odaki
  2021-06-17  2:31 ` [PATCH v2 1/1] " Akihiko Odaki
  0 siblings, 1 reply; 3+ messages in thread
From: Akihiko Odaki @ 2021-06-17  2:31 UTC (permalink / raw)
  Cc: Markus Armbruster, Eric Blake, qemu-devel, Akihiko Odaki, Gerd Hoffmann

This patch adds two QKeyCodes. The corresponding path for ui/keycodemapdb
is titled as "Add QEMU QKeyCode 'lang1' and 'lang2'". This patch should be
applied *before* applying the patch for ui/keycodemapdb, or it causes
build failures.

v1 -> v2:

 - Documented the new QKeyCodes as available "since 6.1".

Akihiko Odaki (1):
  input: Add lang1 and lang2 to QKeyCode

 qapi/ui.json | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

-- 
2.30.1 (Apple Git-130)



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

* [PATCH v2 1/1] input: Add lang1 and lang2 to QKeyCode
  2021-06-17  2:31 [PATCH v2 0/1] input: Add lang1 and lang2 to QKeyCode Akihiko Odaki
@ 2021-06-17  2:31 ` Akihiko Odaki
  2021-06-23 12:44   ` Gerd Hoffmann
  0 siblings, 1 reply; 3+ messages in thread
From: Akihiko Odaki @ 2021-06-17  2:31 UTC (permalink / raw)
  Cc: Markus Armbruster, Eric Blake, qemu-devel, Akihiko Odaki, Gerd Hoffmann

lang1 and lang2 represents the keys with the same names in the
keyboard/keypad usage page (0x07) included in the "HID Usage Tables for
Universal Serial Bus (USB)" version 1.22. Although the keys are
described as "Hangul/English toggle key" and "Hanja conversion key" in
the specification, the meaning depends on the variety of the keyboard,
and it will be used as the representations of Kana and Eisu keys on
Japanese Macs in qemu_input_map_osx_to_qcode, which is used by ui/gtk.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
---
 qapi/ui.json | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/qapi/ui.json b/qapi/ui.json
index ee6fde46d59..269a180a7e2 100644
--- a/qapi/ui.json
+++ b/qapi/ui.json
@@ -786,6 +786,9 @@
 # @muhenkan: since 2.12
 # @katakanahiragana: since 2.12
 #
+# @lang1: since 6.1
+# @lang2: since 6.1
+#
 # 'sysrq' was mistakenly added to hack around the fact that
 # the ps2 driver was not generating correct scancodes sequences
 # when 'alt+print' was pressed. This flaw is now fixed and the
@@ -818,7 +821,8 @@
             'audionext', 'audioprev', 'audiostop', 'audioplay', 'audiomute',
             'volumeup', 'volumedown', 'mediaselect',
             'mail', 'calculator', 'computer',
-            'ac_home', 'ac_back', 'ac_forward', 'ac_refresh', 'ac_bookmarks' ] }
+            'ac_home', 'ac_back', 'ac_forward', 'ac_refresh', 'ac_bookmarks',
+            'lang1', 'lang2' ] }
 
 ##
 # @KeyValue:
-- 
2.30.1 (Apple Git-130)



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

* Re: [PATCH v2 1/1] input: Add lang1 and lang2 to QKeyCode
  2021-06-17  2:31 ` [PATCH v2 1/1] " Akihiko Odaki
@ 2021-06-23 12:44   ` Gerd Hoffmann
  0 siblings, 0 replies; 3+ messages in thread
From: Gerd Hoffmann @ 2021-06-23 12:44 UTC (permalink / raw)
  To: Akihiko Odaki; +Cc: Eric Blake, qemu-devel, Markus Armbruster

On Thu, Jun 17, 2021 at 11:31:13AM +0900, Akihiko Odaki wrote:
> lang1 and lang2 represents the keys with the same names in the
> keyboard/keypad usage page (0x07) included in the "HID Usage Tables for
> Universal Serial Bus (USB)" version 1.22. Although the keys are
> described as "Hangul/English toggle key" and "Hanja conversion key" in
> the specification, the meaning depends on the variety of the keyboard,
> and it will be used as the representations of Kana and Eisu keys on
> Japanese Macs in qemu_input_map_osx_to_qcode, which is used by ui/gtk.
> 
> Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>

Added to UI queue.

thanks,
  Gerd



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

end of thread, other threads:[~2021-06-23 12:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-17  2:31 [PATCH v2 0/1] input: Add lang1 and lang2 to QKeyCode Akihiko Odaki
2021-06-17  2:31 ` [PATCH v2 1/1] " Akihiko Odaki
2021-06-23 12:44   ` 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.