From nobody Mon Feb 9 08:11:54 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1613772510; cv=none; d=zohomail.com; s=zohoarc; b=iO5B9Dw8GnxP/xujdicVE850TfZzTZ7SHhPz7nR8AafSy+bte+ux1ihYva4SRiePLGNpecs6pOH5Gn+e33HOwLjDLYp98T0aQThQe+VJdGTT/hw9Ywtsy8ceecoII9BgXM2JZ6pEQxJlpBWYW7ne7iL73g2M8ZXlaSpy/A0BzhA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1613772510; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=6ji6Ud/Z1JR/xpNRHVTli7SYXTNPt/2RyJG0ogwAWUI=; b=Zai0fG3uZnr0m9QvxXpXeVpWWlN1dRJFyslIRCR4p4tGhlnc9PuK79j7CYjbcd+U/aFU6JYslgL9r5tBS5s6D8EPyIrmkv0FuPTeXJDNnq+FWhxuWWsVl0hzAF8ReaS1LK7DzNCyexXhrNCa5nlFxrSDqZb3zQMkPedndC2wr/U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1613772509827288.35907512165977; Fri, 19 Feb 2021 14:08:29 -0800 (PST) Received: from localhost ([::1]:58942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDDwq-0005fr-NT for importer@patchew.org; Fri, 19 Feb 2021 17:08:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDDpP-0003K6-PK for qemu-devel@nongnu.org; Fri, 19 Feb 2021 17:00:47 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:54476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lDDpN-0005cr-Mp for qemu-devel@nongnu.org; Fri, 19 Feb 2021 17:00:47 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-414-Lc3ZFUJQNfWy7CdKy9waqA-1; Fri, 19 Feb 2021 17:00:42 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E64E9803648; Fri, 19 Feb 2021 22:00:41 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-114-184.ams2.redhat.com [10.36.114.184]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 79EBF5D723; Fri, 19 Feb 2021 22:00:38 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 009D11800398; Fri, 19 Feb 2021 23:00:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1613772044; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6ji6Ud/Z1JR/xpNRHVTli7SYXTNPt/2RyJG0ogwAWUI=; b=BXXsNnTtFfhMPf93e20dkaKz1W2Z0eJS83oh2NoBRi0dqH0igdmM+ybXuElt3alTSAZBGF YGHuCbTTElcP/ExXvJEocRu+EL4KER0Wd7ggvHtCkJg9bx3y8kmtbOTopok+jleZvi7MMh 0c83rIcJkks3zuNkj43R/fuYcYRvT+M= X-MC-Unique: Lc3ZFUJQNfWy7CdKy9waqA-1 From: Gerd Hoffmann To: qemu-devel@nongnu.org Subject: [PULL 3/8] ui/cocoa: Support unique keys of JIS keyboards Date: Fri, 19 Feb 2021 23:00:31 +0100 Message-Id: <20210219220036.100654-4-kraxel@redhat.com> In-Reply-To: <20210219220036.100654-1-kraxel@redhat.com> References: <20210219220036.100654-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=63.128.21.124; envelope-from=kraxel@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: Peter Maydell , Gerd Hoffmann , Akihiko Odaki Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Akihiko Odaki Signed-off-by: Akihiko Odaki Message-Id: <20210212000404.28413-1-akihiko.odaki@gmail.com> Signed-off-by: Gerd Hoffmann --- ui/cocoa.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ui/cocoa.m b/ui/cocoa.m index 13fba8103e1a..78fcfeaf04b7 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -240,6 +240,13 @@ const int mac_to_qkeycode_map[] =3D { [kVK_F14] =3D Q_KEY_CODE_SCROLL_LOCK, [kVK_F15] =3D Q_KEY_CODE_PAUSE, =20 + // JIS keyboards only + [kVK_JIS_Yen] =3D Q_KEY_CODE_YEN, + [kVK_JIS_Underscore] =3D Q_KEY_CODE_RO, + [kVK_JIS_KeypadComma] =3D Q_KEY_CODE_KP_COMMA, + [kVK_JIS_Eisu] =3D Q_KEY_CODE_MUHENKAN, + [kVK_JIS_Kana] =3D Q_KEY_CODE_HENKAN, + /* * The eject and volume keys can't be used here because they are handl= ed at * a lower level than what an Application can see. --=20 2.29.2