Received: from eggs.gnu.org ([2001:4830:134:3::10]:37514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayVfK-00010I-7K for qemu-devel@nongnu.org; Thu, 05 May 2016 22:39:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayVf8-0004YA-Kz for qemu-devel@nongnu.org; Thu, 05 May 2016 22:38:48 -0400 Received: from mail-io0-x242.google.com ([2607:f8b0:4001:c06::242]:35711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayVf7-0004R1-Dy for qemu-devel@nongnu.org; Thu, 05 May 2016 22:38:42 -0400 Received: by mail-io0-x242.google.com with SMTP id u185so12771414iod.2 for ; Thu, 05 May 2016 19:38:27 -0700 (PDT) From: Programmingkid Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Thu, 5 May 2016 22:38:22 -0400 Message-Id: Mime-Version: 1.0 (Apple Message framework v1084) Subject: [Qemu-devel] [PATCH v3 4/5] adb.c: prevent NO_KEY value from going to guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Gerd Hoffmann Cc: qemu-devel qemu-devel The NO_KEY value should not be sent to the guest. This patch drops that = value. Signed-off-by: John Arbuckle --- hw/input/adb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/input/adb.c b/hw/input/adb.c index 6d4f4dc..37728b3 100644 --- a/hw/input/adb.c +++ b/hw/input/adb.c @@ -424,6 +424,9 @@ static void adb_keyboard_event(DeviceState *dev, = QemuConsole *src, return; } keycode =3D qcode_to_adb_keycode[qcode]; + if (keycode =3D=3D NO_KEY) { /* We don't want to send this to the = guest */ + return; + } =20 if (evt->u.key.data->down =3D=3D false) { /* if key release event = */ keycode =3D keycode | 0x80; /* create keyboard break code */ --=20 2.7.2