From patchwork Wed Jun 16 14:45:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiko Odaki X-Patchwork-Id: 12325425 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1BBBC48BE5 for ; Wed, 16 Jun 2021 14:48:10 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B6D060C41 for ; Wed, 16 Jun 2021 14:48:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B6D060C41 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:51980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltWpt-0006as-Eg for qemu-devel@archiver.kernel.org; Wed, 16 Jun 2021 10:48:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltWnh-0003t5-WE for qemu-devel@nongnu.org; Wed, 16 Jun 2021 10:45:54 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:41851) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltWnV-0006vh-OO for qemu-devel@nongnu.org; Wed, 16 Jun 2021 10:45:53 -0400 Received: by mail-pg1-x52b.google.com with SMTP id l184so2139542pgd.8 for ; Wed, 16 Jun 2021 07:45:39 -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 :mime-version:content-transfer-encoding; bh=xASViynPy0qq+U6HlrQXZ1RH4HIuGP9OKmMwWbApixY=; b=cg3r4Olb0W5QycFEPwloERaRFsCarAw0gXb3PPx1Qn2zIimJ3zoG2LCAlHSpJJDqzH Ezcvvzdj1NWILORlkX4sApLIlD2I3A53DF62VzHAj9skt0rAeJyYN+JZP82fBY9gZ1Tg rpVR/rcjhmkjlJwEvPtcFr1Lb25/Bs1mwK8nZA9q1Mvv8uhMfv3H/qif5a3qwXMyjzZC UpTroNp5OzHRouJZvlT3th/z6NrBts+ekItNkRodrKZX4O1jCUZPAougCGuJWXBwmwr/ BtSZxIQZZCvapfDl7nOOkOAuRJU9szRxlKKPQmvQ35fuSET7BFkSu3JgpfEiePz0MGTl vBSg== 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:mime-version:content-transfer-encoding; bh=xASViynPy0qq+U6HlrQXZ1RH4HIuGP9OKmMwWbApixY=; b=Kn7rWBKJAC+GF1vE4lOL0BazoczEV3IKKyiTshBoTLU5atNbMGb+VQkoWN8pTpEa1J 5Mo+FCXZps/ZmA1QHluKH41CfSZoATfiYSMZIdfgbxpxpuYGeQBCutAGUeO6R8llnCTj l5Ks3mxTFvybmYQczsZKsiZt/lyhxMBw9m2RVCH0M5O2CtZFpElGqqjGROIDsTAJzrkc iggWAALQNCT9cvOWW1sXcw9Cax00dYtuXglO4xPCSr0JQQ7Wk6lsbLtiFipR2O4uMLf9 0b0aRII9FGB0bh8BJvp7ic3+gJIZKOVeu3LPdgmRijM/Ph0yasAvH6l97EzGLwojG/Gz LxLw== X-Gm-Message-State: AOAM5305Ty8zco9uG9uBXX+DGiovenh/cjvioaxsBNUPoN4MKZjj9vNO sUwSG5O2LzgvUp3VGcvUkptirbP6bAoQ0w== X-Google-Smtp-Source: ABdhPJyULNN1rIvNCbJeMECxC/AeA6/EotnaEh7IXDAK815OZRgW1CS1qgVfKvMYPPOe2E9dAZpkuQ== X-Received: by 2002:a63:4906:: with SMTP id w6mr5362543pga.212.1623854738339; Wed, 16 Jun 2021 07:45:38 -0700 (PDT) Received: from localhost.localdomain ([2400:4050:c360:8200:40bd:72ed:2c81:7963]) by smtp.gmail.com with ESMTPSA id c207sm2443027pfb.86.2021.06.16.07.45.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jun 2021 07:45:38 -0700 (PDT) From: Akihiko Odaki To: Subject: [PATCH 1/1] input: Add lang1 and lang2 to QKeyCode Date: Wed, 16 Jun 2021 23:45:22 +0900 Message-Id: <20210616144522.55643-2-akihiko.odaki@gmail.com> X-Mailer: git-send-email 2.30.1 (Apple Git-130) In-Reply-To: <20210616144522.55643-1-akihiko.odaki@gmail.com> References: <20210616144522.55643-1-akihiko.odaki@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=akihiko.odaki@gmail.com; helo=mail-pg1-x52b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Markus Armbruster , Eric Blake , qemu-devel@nongnu.org, Akihiko Odaki , Gerd Hoffmann Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" 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 --- qapi/ui.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qapi/ui.json b/qapi/ui.json index ee6fde46d59..3b16b2191cc 100644 --- a/qapi/ui.json +++ b/qapi/ui.json @@ -786,6 +786,9 @@ # @muhenkan: since 2.12 # @katakanahiragana: since 2.12 # +# @lang1: since 6.0.50 +# @lang2: since 6.0.50 +# # '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: