From patchwork Thu Oct 5 19:04:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Programmingkid X-Patchwork-Id: 9987817 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 49F156029B for ; Thu, 5 Oct 2017 19:12:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 427A628D43 for ; Thu, 5 Oct 2017 19:12:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 378BB28D45; Thu, 5 Oct 2017 19:12:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C737928D43 for ; Thu, 5 Oct 2017 19:12:45 +0000 (UTC) Received: from localhost ([::1]:41709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0BZd-0006Ey-1j for patchwork-qemu-devel@patchwork.kernel.org; Thu, 05 Oct 2017 15:12:45 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0BSL-0000tE-Lq for qemu-devel@nongnu.org; Thu, 05 Oct 2017 15:05:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0BSF-0003kF-Ly for qemu-devel@nongnu.org; Thu, 05 Oct 2017 15:05:13 -0400 Received: from mail-it0-x244.google.com ([2607:f8b0:4001:c0b::244]:56134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e0BSF-0003jl-Gm for qemu-devel@nongnu.org; Thu, 05 Oct 2017 15:05:07 -0400 Received: by mail-it0-x244.google.com with SMTP id p185so2532196itc.4 for ; Thu, 05 Oct 2017 12:05:07 -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; bh=g2jo9Z7zgzKbwqpKEk3vedAc82kCvsj8XDTgA5YveS8=; b=jOzKxhFjTybJ1075JgLuaYqWpCpyXlE8UdaZuvMCqhtttSRfJmRhWBkWCiJlg/uuuM Gn+pYRyM/Nq3YZJ0iT8N9f0NZtPo9lMjhs5Zk9LM75DfTAVvgWQPQiM11ERuJh060R6m QbWg+vZhmgrS+Szh2E1ieFGKm/ToXXVRycidkyDBlggpsNPBbCFIWDENiWw79lMzPpyX QfI9EMZL0iy42TjIRrQlc+8buTIt4MCEFDaXF9B4BtwVTXO2HGz7mhWa9t9gR7P6G7Gp sKWLUDQrFGhK4Vga6TdNhXTEZvkBZwV2snl8LtskMru1zP40BjM62YyJdkEWXyy9Uac9 v4uQ== 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; bh=g2jo9Z7zgzKbwqpKEk3vedAc82kCvsj8XDTgA5YveS8=; b=gRjYOikg0/pS+FEJ5NQlnFoOkxzT76KoMuW2b0mFLSi89ctMeSiCgmF0ZQE8rH+vR7 tdrPMi+ZXfpA0oGUqbBE9cLx9LTGRj7qqlb3yshbxl1ut/DRKjN81709kH0wbmzrlEhT qId6AkN3oTMWARrSQR2PpY3i9VpskRZAvoTy36Fc2IbIkzbQHEKSXChCfs/kUz95mWOz wYi5uNj3EQcfM1yOik3NdbJR4yx/dkwrTBxlaO28tBTWhWqEH3Zyb8W55FVqLARfcYnY 1C3Gsy6FGA0hZ1FKBf4ZZT/e2EgGd0qN4j5ny3kPC4uwRLwMNEp6SvUqRtOTNlikV8Ry HH1w== X-Gm-Message-State: AMCzsaWfyQIVhpD4uZ9q9k4Hq679hJWQt858pecdSb0kHCx+vjn8Ymzy EbGZEOSJdeJR7pSEDrhhA98= X-Google-Smtp-Source: AOwi7QDjr5N9OSblZHJUH371qDGJI/PV6qx+Jui/dN7wX30Bb8Z0Wi2azCGDRYr81qYStEDnjxc+ZQ== X-Received: by 10.36.20.81 with SMTP id 78mr157120itg.127.1507230306721; Thu, 05 Oct 2017 12:05:06 -0700 (PDT) Received: from localhost.localdomain (d199-74-164-53.col.wideopenwest.com. [74.199.53.164]) by smtp.gmail.com with ESMTPSA id 78sm9152itz.12.2017.10.05.12.05.05 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 05 Oct 2017 12:05:06 -0700 (PDT) From: John Arbuckle To: peter.maydell@linaro.org, qemu-devel@nongnu.org Date: Thu, 5 Oct 2017 15:04:49 -0400 Message-Id: <20171005190449.15591-1-programmingkidx@gmail.com> X-Mailer: git-send-email 2.13.5 (Apple Git-94) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::244 Subject: [Qemu-devel] [PATCH] ui/cocoa.m: Fix console selection keys X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: John Arbuckle Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Fix console selection keys so that the right console is selected. Signed-off-by: John Arbuckle --- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 93e56d0518..2794f60b27 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -631,7 +631,7 @@ - (void) handleEvent:(NSEvent *)event // enable graphic console case Q_KEY_CODE_1 ... Q_KEY_CODE_9: // '1' to '9' keys - console_select(keycode - 11); + console_select(keycode - Q_KEY_CODE_1); break; }