From patchwork Thu May 27 20:31:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Sleight X-Patchwork-Id: 53782 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EFCAAB7D1D for ; Fri, 28 May 2010 06:31:50 +1000 (EST) Received: from localhost ([127.0.0.1]:42771 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHjk3-0004va-5H for incoming@patchwork.ozlabs.org; Thu, 27 May 2010 16:31:47 -0400 Received: from [140.186.70.92] (port=36487 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OHjjU-0004ra-Vv for qemu-devel@nongnu.org; Thu, 27 May 2010 16:31:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OHjjT-0002oA-Ok for qemu-devel@nongnu.org; Thu, 27 May 2010 16:31:12 -0400 Received: from mail-ww0-f45.google.com ([74.125.82.45]:42788) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OHjjT-0002nu-Kl for qemu-devel@nongnu.org; Thu, 27 May 2010 16:31:11 -0400 Received: by wwg30 with SMTP id 30so367393wwg.4 for ; Thu, 27 May 2010 13:31:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.169.199 with SMTP id n49mr1022016wel.42.1274992268870; Thu, 27 May 2010 13:31:08 -0700 (PDT) Received: by 10.216.8.81 with HTTP; Thu, 27 May 2010 13:31:08 -0700 (PDT) Date: Thu, 27 May 2010 21:31:08 +0100 Message-ID: From: Brendan Sleight To: qemu-devel@nongnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [Qemu-devel] [PATCH] Extra scan codes for missing keys X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Hi All, First - Qemu is fantastic and allows lots of wonderful things. Second, when using qemu-system-ppc, I wanted to use sendkey to emulate a colon. This patch enables shift-semicolon to emulate a ':' Whilst I was adding semicolon, I used the following link to look up some other missing keys :- http://terpconnect.umd.edu/~nsw/ench250/scancode.htm#Key2 Please cc my to any replies as I am not subscribed to the list. Best Regards, Brendan M. Sleight diff --git a/monitor.c b/monitor.c index ad50f12..e1ffa0e 100644 --- a/monitor.c +++ b/monitor.c @@ -1641,6 +1641,8 @@ static const KeyDef key_defs[] = { { 0x17, "i" }, { 0x18, "o" }, { 0x19, "p" }, + { 0x1a, "sqr_brack_l" }, + { 0x1b, "sqr_brack_r" }, { 0x1c, "ret" }, @@ -1653,7 +1655,11 @@ static const KeyDef key_defs[] = { { 0x24, "j" }, { 0x25, "k" }, { 0x26, "l" }, + { 0x27, "semicolon" }, + { 0x28, "apostrophe" }, + { 0x29, "grave_accent" }, + { 0x2b, "backslash" }, { 0x2c, "z" }, { 0x2d, "x" }, { 0x2e, "c" },