qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 1/2] Add more function keys to QEMU
@ 2017-07-30 20:29 Programmingkid
  2017-07-31  9:46 ` Daniel P. Berrange
  0 siblings, 1 reply; 7+ messages in thread
From: Programmingkid @ 2017-07-30 20:29 UTC (permalink / raw)
  To: Peter Maydell, Eric Blake, Daniel P. Berrange
  Cc: qemu-devel@nongnu.org qemu-devel

There are now keyboards that have 19 function keys. This patch extends QEMU so these function keys can be used.

Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
---
 qapi-schema.json  | 12 +++++++++++-
 ui/input-keymap.c |  9 +++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/qapi-schema.json b/qapi-schema.json
index c96f0a2..f1c989b 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -4862,6 +4862,15 @@
 # @ac_refresh: since 2.10
 # @ac_bookmarks: since 2.10
 # altgr, altgr_r: dropped in 2.10
+# @f16: since 2.11
+# @f17: since 2.11
+# @f18: since 2.11
+# @f19: since 2.11
+# @f20: since 2.11
+# @f21: since 2.11
+# @f22: since 2.11
+# @f23: since 2.11
+# @f24: since 2.11
 #
 # Since: 1.3.0
 #
@@ -4888,7 +4897,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',
+            'f16', 'f17', 'f18', 'f19', 'f20', 'f21', 'f22', 'f23', 'f24'] }
 
 ##
 # @KeyValue:
diff --git a/ui/input-keymap.c b/ui/input-keymap.c
index cf979c2..c0413e1 100644
--- a/ui/input-keymap.c
+++ b/ui/input-keymap.c
@@ -251,6 +251,15 @@ static const int qcode_to_number[] = {
 
     [Q_KEY_CODE_F11] = 0x57,
     [Q_KEY_CODE_F12] = 0x58,
+    [Q_KEY_CODE_F16] = 0x59,
+    [Q_KEY_CODE_F17] = 0x5a,
+    [Q_KEY_CODE_F18] = 0x5b,
+    [Q_KEY_CODE_F19] = 0x5c,
+    [Q_KEY_CODE_F20] = 0x5d,
+    [Q_KEY_CODE_F21] = 0x5e,
+    [Q_KEY_CODE_F22] = 0x5f,
+    [Q_KEY_CODE_F23] = 0x60,
+    [Q_KEY_CODE_F24] = 0x61,
 
     [Q_KEY_CODE_PRINT] = 0xb7,
 
-- 
2.7.2

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

end of thread, other threads:[~2017-07-31 15:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-30 20:29 [Qemu-devel] [PATCH v2 1/2] Add more function keys to QEMU Programmingkid
2017-07-31  9:46 ` Daniel P. Berrange
2017-07-31 12:46   ` Programmingkid
2017-07-31 13:10     ` Daniel P. Berrange
2017-07-31 14:52       ` Programmingkid
2017-07-31 15:06         ` Daniel P. Berrange
2017-07-31 15:12           ` Programmingkid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).