Received: from eggs.gnu.org ([2001:4830:134:3::10]:54339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fsCRE-0005kl-M7 for qemu-devel@nongnu.org; Tue, 21 Aug 2018 15:35:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fsCR9-0001sN-7P for qemu-devel@nongnu.org; Tue, 21 Aug 2018 15:35:36 -0400 Received: from ec2-34-202-238-73.compute-1.amazonaws.com ([34.202.238.73]:43018 helo=vps.thesusis.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fsCR5-0001kY-AR for qemu-devel@nongnu.org; Tue, 21 Aug 2018 15:35:29 -0400 References: <20180817150513.GT11124@redhat.com> <6bf952d9-0269-c5df-6cac-70104ec88f81@ubuntu.com> <20180817155152.GV11124@redhat.com> From: Phillip Susi Message-ID: <9a4e02d1-84b7-ae68-37a7-bcade6718134@ubuntu.com> Date: Tue, 21 Aug 2018 15:35:15 -0400 MIME-Version: 1.0 In-Reply-To: <20180817155152.GV11124@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="rRlHdfCsln8qoAstLULntXPemJqycL1Pi" Subject: Re: [Qemu-devel] Pipe key broken on US keyboards List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "=?UTF-8?Q?Daniel_P._Berrang=c3=a9?=" Cc: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rRlHdfCsln8qoAstLULntXPemJqycL1Pi From: Phillip Susi To: =?UTF-8?Q?Daniel_P._Berrang=c3=a9?= Cc: qemu-devel@nongnu.org Message-ID: <9a4e02d1-84b7-ae68-37a7-bcade6718134@ubuntu.com> Subject: Re: Pipe key broken on US keyboards References: <20180817150513.GT11124@redhat.com> <6bf952d9-0269-c5df-6cac-70104ec88f81@ubuntu.com> <20180817155152.GV11124@redhat.com> In-Reply-To: <20180817155152.GV11124@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 8/17/2018 11:51 AM, Daniel P. Berrang=C3=A9 wrote: > Since you're using tightvnc on Windows, it won't be using the raw scanc= ode > extension to RFB, so it'll be sending X keysyms across the wire eg=20 >=20 > "|" has X11 keysym 0x7c (XK_bar) > "\" has X11 keysym 0x5c (XK_backslash) >=20 > First thing is the converting keysym number to a name, which > uses name2keysym[] data table. This gives 'bar' and 'backslash' > as names, respectively >=20 > The names are now looked up in the keymap (pc-bios/keymaps/en-us) > which says >=20 > backslash 0x2b > bar 0x2b shift Thanks. I checked out the 2.11 version that Ubuntu 18.04 shipped and found the problem: commit a7815faffb2bd594b92aa3542d7b799cc89c5414 Author: Gerd Hoffmann Date: Thu Oct 5 17:33:30 2017 +0200 pc-bios/keymaps: keymaps update Update the keymaps with the ones generated by qemu-keymap Signed-off-by: Gerd Hoffmann Message-id: 20171005153330.19210-4-kraxel@redhat.com Prior to this commit, this file said it was generated from XKB, and was much smaller, not including the scan code for that other key. This commit added the 0x56 bar translation with altgr, and it wasn't until after 2.12 those smarts were inserted to pick the scancode that matches the current modifier keys. --rRlHdfCsln8qoAstLULntXPemJqycL1Pi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJbfGl3AAoJENsuw7lhAP6EJQcIAIcJP77CnELCe4CIS+2eW07u B6n2RJWGMV1OKnIxsJfTsf46w7167giKPpYSXOR4JQuwY348demJacbKfCDKfBHh yrn10Kc8xatzahm0LhMAZVUeO/R5Xd/t4Posd1T9CVj4zgjpgZJA8/+qUrnHkvHf 70G04zRJm+O8I54ahP2ww83CvVMxeL/U3c5V6Cg9eOGruCmTZOibYCfqEpoHr+JO albKvZW6BesxIM7e3WxNap+/b+BDPMJz0DwX4l+rLKt+mVz2G5rrXICFSvC7saa6 o71d60JS0MjIzo5VQSMGcfR829p06CGfeyTw2eGuRri7gV2iDlfH2XhYga4PQCY= =AIA+ -----END PGP SIGNATURE----- --rRlHdfCsln8qoAstLULntXPemJqycL1Pi--