From nobody Sun Apr 28 09:32:38 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1501530386088576.8565413487897; Mon, 31 Jul 2017 12:46:26 -0700 (PDT) Received: from localhost ([::1]:33181 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcGe0-0003x1-FB for importer@patchew.org; Mon, 31 Jul 2017 15:46:24 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcGck-0003HO-W7 for qemu-devel@nongnu.org; Mon, 31 Jul 2017 15:45:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcGch-00058c-Sx for qemu-devel@nongnu.org; Mon, 31 Jul 2017 15:45:07 -0400 Received: from mail-io0-x241.google.com ([2607:f8b0:4001:c06::241]:36054) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcGch-00058B-OK for qemu-devel@nongnu.org; Mon, 31 Jul 2017 15:45:03 -0400 Received: by mail-io0-x241.google.com with SMTP id j32so9957iod.3 for ; Mon, 31 Jul 2017 12:45:03 -0700 (PDT) Received: from localhost.localdomain (d199-74-164-53.col.wideopenwest.com. [74.199.53.164]) by smtp.gmail.com with ESMTPSA id r18sm9511989ioe.78.2017.07.31.12.45.01 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 31 Jul 2017 12:45:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Vq61M03QvVGuozsE/CQyJ3MJwWF3e3Da6Lo+auiSsPM=; b=EM/2isKyfrIMr3d8/Dir7ji377k8cEVue0Xl0ZMS3fufwMI/2xWeubgd7w+MrKjkDe XCQ0y7Z0ScOPkMPNIr0b/NLLCqVKiRb1OoPXHWvUXf6GtCQ22Ien9wM2QM5YBUUUQMyC 5Lzd59YiqFjNlz9XyFFdNpLVOEgzp8nnbF7pM40fdLoX8y2hQ2CQhdToSyB3o1rfKS47 MgxAlTPp9kpEVuWObLrTugYExTC0v48c7OUz5buRnyiK5F5/wtXW6YbI8NhtCL7EtON7 OGLVPIdaDhdnIQuRDu9WGUQ4mbQRf1DYUnH+nk11kRe9uPowb2uf+NteFgxvfBbdfOUh MlbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Vq61M03QvVGuozsE/CQyJ3MJwWF3e3Da6Lo+auiSsPM=; b=jsOGrg9D4zlr17qP0rn14edCeGWgizYDD/EFy3SgzldqyeiqWMmWGmLGiq88+9/A01 bZPCtz0dxwZ5Jr9RCZrR0s8BXciJi6qDtFFZ9ITjF8O1V0jAjKKj9E5y65vlS8c8PoT6 Ygbfjqu5/ZQ3HAGSdPnLUKzi8ddbM0CFpMwQhSuj1eIH8/fazre3fKa6DebJvMs+7ed6 b8E8fXIV/nwdzXgQoem1bu1Aa4IjrVTu5yfQa+ohNnjs4AGGjb7YoibihfR/Qams+cfk mxXPShXYBds5YoFZqd1wJBLufu3V0c0rVeRQrttK9J5R7JHoiOGMn5Hnr9YgGn88Ia+t UF8A== X-Gm-Message-State: AIVw112BBF4tsAbBuLMqPRnWJnZ2+Y/WMDTQwtLMnnRehrZM4xtDbmab rDk1CoV54kD/kPqD X-Received: by 10.107.187.129 with SMTP id l123mr18963360iof.122.1501530302968; Mon, 31 Jul 2017 12:45:02 -0700 (PDT) From: John Arbuckle To: qemu-devel@nongnu.org, peter.maydell@linaro.org, eblake@redhat.com, berrange@redhat.com Date: Mon, 31 Jul 2017 15:44:36 -0400 Message-Id: <20170731194437.4077-2-programmingkidx@gmail.com> X-Mailer: git-send-email 2.11.0 (Apple Git-81) In-Reply-To: <20170731194437.4077-1-programmingkidx@gmail.com> References: <20170731194437.4077-1-programmingkidx@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::241 Subject: [Qemu-devel] [PATCH v3 1/2] Add more function keys to QEMU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: John Arbuckle Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Daniel P. Berrange --- qapi-schema.json | 16 +++++++++++++++- ui/input-keymap.c | 12 ++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index c96f0a26f6..f3433aabe6 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -4862,6 +4862,18 @@ # @ac_refresh: since 2.10 # @ac_bookmarks: since 2.10 # altgr, altgr_r: dropped in 2.10 +# @f13: since 2.11 +# @f14: since 2.11 +# @f15: since 2.11 +# @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 +4900,9 @@ 'audionext', 'audioprev', 'audiostop', 'audioplay', 'audiomute= ', 'volumeup', 'volumedown', 'mediaselect', 'mail', 'calculator', 'computer', - 'ac_home', 'ac_back', 'ac_forward', 'ac_refresh', 'ac_bookmark= s' ] } + 'ac_home', 'ac_back', 'ac_forward', 'ac_refresh', 'ac_bookmark= s', + 'f13', 'f14', 'f15', 'f16', 'f17', 'f18', 'f19', 'f20', 'f21', + 'f22', 'f23', 'f24']} =20 ## # @KeyValue: diff --git a/ui/input-keymap.c b/ui/input-keymap.c index cf979c2ce9..21a25d9c63 100644 --- a/ui/input-keymap.c +++ b/ui/input-keymap.c @@ -251,6 +251,18 @@ static const int qcode_to_number[] =3D { =20 [Q_KEY_CODE_F11] =3D 0x57, [Q_KEY_CODE_F12] =3D 0x58, + [Q_KEY_CODE_F13] =3D 0x5d, + [Q_KEY_CODE_F14] =3D 0x5e, + [Q_KEY_CODE_F15] =3D 0x5f, + [Q_KEY_CODE_F16] =3D 0x55, + [Q_KEY_CODE_F17] =3D 0x83, + [Q_KEY_CODE_F18] =3D 0xf7, + [Q_KEY_CODE_F19] =3D 0x84, + [Q_KEY_CODE_F20] =3D 0x5a, + [Q_KEY_CODE_F21] =3D 0x74, + [Q_KEY_CODE_F22] =3D 0xf9, + [Q_KEY_CODE_F23] =3D 0x6d, + [Q_KEY_CODE_F24] =3D 0x6f, =20 [Q_KEY_CODE_PRINT] =3D 0xb7, =20 --=20 2.11.0 (Apple Git-81) From nobody Sun Apr 28 09:32:38 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1501530460862947.8463074625203; Mon, 31 Jul 2017 12:47:40 -0700 (PDT) Received: from localhost ([::1]:33184 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcGfD-0004gz-0v for importer@patchew.org; Mon, 31 Jul 2017 15:47:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcGck-0003HP-Vv for qemu-devel@nongnu.org; Mon, 31 Jul 2017 15:45:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcGci-00059t-U2 for qemu-devel@nongnu.org; Mon, 31 Jul 2017 15:45:07 -0400 Received: from mail-io0-x243.google.com ([2607:f8b0:4001:c06::243]:37709) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcGci-00059O-Px for qemu-devel@nongnu.org; Mon, 31 Jul 2017 15:45:04 -0400 Received: by mail-io0-x243.google.com with SMTP id c74so5518iod.4 for ; Mon, 31 Jul 2017 12:45:04 -0700 (PDT) Received: from localhost.localdomain (d199-74-164-53.col.wideopenwest.com. [74.199.53.164]) by smtp.gmail.com with ESMTPSA id r18sm9511989ioe.78.2017.07.31.12.45.03 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 31 Jul 2017 12:45:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=MZlCUwwmQgkN/IaP0ER5PQW2hGhtGr8OVJlg0OAt5sA=; b=hzkkO1+BMtuKExdRcR7Tr7Nzq2gRugkiNNfmzlmjrOcoup1fjVHOjiNPT8fFW8oKiz SCziBefDK6bXAc/2l1fgeY9Fp0Ga+HbK8yr23JG6i0RoVNaS9RSGDhXrREb8jtxZJOll b7XTBLqf0ttgIhTHmKAOexYsgiB/XCG9r6qUe5jRhHBwP/Zfnow31OrKTgw++KFXGufV M49JSmFAGwoRC/CaH3ouUR+LHbXULpmq2ojn4zmWEkHO9J6RYSNMBq3rmrAP58+LCiM5 iY4oR2vKbF8UtwLRLNAxocApEbM4FAoc/3a8SxvwppIV4gP7aZD528MEntw8Piolng1W iXjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MZlCUwwmQgkN/IaP0ER5PQW2hGhtGr8OVJlg0OAt5sA=; b=VPBsE+ybPTn/tK00JrofxxLDZ37qzhveMgiGeDHwATwMk4XxKcwpHEgzhYWrT5OZlC kQAzQDKKXhF4eENKhdFB2XtZdbpIgV6SQHGtWl8Hz6a4KtcPuf4aDg50FJODg7QRM2DY qWFXcg1av8IEOso0VS87QvtyGYUb/3yQbz/Wm+iDisqMhpbyJ0f1/HcEyah+h3MlWfTX Z/Y1PmCFKiZHLlyuOHb0ImKqSPF3foKbpacyGNAhh4PqXGm+ugpbEH3Bvumsc5v7yWlK aEpXmyUBTeno1Or292Em1c4pIIVllFoycxkb2oketOfnuS23oqEaF26WnieMRQXUzUmB ClBQ== X-Gm-Message-State: AIVw110jyB4riVXs15ocOPqNKlD82esshHbTA+ITQL7/4EeK7InGQfRq n1ylxtpqcxewzpc1 X-Received: by 10.107.137.142 with SMTP id t14mr19801946ioi.215.1501530304009; Mon, 31 Jul 2017 12:45:04 -0700 (PDT) From: John Arbuckle To: qemu-devel@nongnu.org, peter.maydell@linaro.org, eblake@redhat.com, berrange@redhat.com Date: Mon, 31 Jul 2017 15:44:37 -0400 Message-Id: <20170731194437.4077-3-programmingkidx@gmail.com> X-Mailer: git-send-email 2.11.0 (Apple Git-81) In-Reply-To: <20170731194437.4077-1-programmingkidx@gmail.com> References: <20170731194437.4077-1-programmingkidx@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c06::243 Subject: [Qemu-devel] [PATCH v3 2/2] Add more function keys to cocoa.m X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: John Arbuckle Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: John Arbuckle Reviewed-by: Daniel P. Berrange --- ui/cocoa.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/cocoa.m b/ui/cocoa.m index 93e56d0518..edc7a65f7c 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -225,6 +225,11 @@ [kVK_F13] =3D Q_KEY_CODE_PRINT, [kVK_F14] =3D Q_KEY_CODE_SCROLL_LOCK, [kVK_F15] =3D Q_KEY_CODE_PAUSE, + [kVK_F16] =3D Q_KEY_CODE_F16, + [kVK_F17] =3D Q_KEY_CODE_F17, + [kVK_F18] =3D Q_KEY_CODE_F18, + [kVK_F19] =3D Q_KEY_CODE_F19, + [kVK_F20] =3D Q_KEY_CODE_F20 =20 /* * The eject and volume keys can't be used here because they are handl= ed at --=20 2.11.0 (Apple Git-81)