From patchwork Sun Jul 30 20:29:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Programmingkid X-Patchwork-Id: 9870673 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 9ED216038F for ; Sun, 30 Jul 2017 20:31:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91E022852A for ; Sun, 30 Jul 2017 20:31:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86C0728572; Sun, 30 Jul 2017 20:31:20 +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 0BCA82852A for ; Sun, 30 Jul 2017 20:31:19 +0000 (UTC) Received: from localhost ([::1]:56411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dburu-0005QJ-To for patchwork-qemu-devel@patchwork.kernel.org; Sun, 30 Jul 2017 16:31:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbuqY-0004x0-Ib for qemu-devel@nongnu.org; Sun, 30 Jul 2017 16:29:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dbuqT-000651-HL for qemu-devel@nongnu.org; Sun, 30 Jul 2017 16:29:54 -0400 Received: from mail-it0-x242.google.com ([2607:f8b0:4001:c0b::242]:34714) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dbuqT-00064D-DJ for qemu-devel@nongnu.org; Sun, 30 Jul 2017 16:29:49 -0400 Received: by mail-it0-x242.google.com with SMTP id t78so16526610ita.1 for ; Sun, 30 Jul 2017 13:29:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :cc:to; bh=dzVf+MBVco6xqkWFebHJQEmn/61xcR/GXbWks96qQwk=; b=UvGjAmBd2qM+XOxtjqpaYbSoHCOSkYJwEMBAQmKkTKL6gdEonAAuWwT0Z8Ia8ytASI EDyXJbkQHetBha/TutgXGos5KVCV8cgHbPqTvpXA4jLpPCdCy6aiBwKqBxqAk/+pa7gr IWeDd4bX5UE74fL9aPSal0/jxzRvhsgTuvS9d7sdKQS81IkwUe2iOoMLQeqP4cKtAqno rVAppU00vy5EXviRflsAUgLFyEUNYlTu0FPc24LQTxupvjElbaNsUB2TGyEN1Vax9aXf i/GFymT3/1yWlBd0lOnS10kardxqhExJKExoTXpQeZ8Osx29NOZjplt37HLjBCJ8MfvA HBsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:cc:to; bh=dzVf+MBVco6xqkWFebHJQEmn/61xcR/GXbWks96qQwk=; b=S1GEZOq0TA+fZRcfDe7jNIrg2Usxng7ceYSeOdV0gjby9Tq9kAq9z+Q5YWTnUYIHoP 11ANjKcW3ae1OjFyy8kb0aoYYqlZM9dzU4xmaO/gQvwAaL4424blFMBDTCfFu8yrpH2+ MOsttstmzLRHNjwtgON3vLjfint/vuQ+DKlHD0u9jloyknvH/tD69L9MMA184713NQJh Ej5dr1vi+70Q5I8bpoJuJusodzLp/NAVAD82Nxay3egBMwGNoLAStLOafbiiX6orXKfA ghskVOX00HOPtIx3AM5l5rvLii0NY1SnvPQHVsHetBNLVIQEy6aC9jVhWdb0ye/HOIlo ozBA== X-Gm-Message-State: AIVw110bXsiEeuFUGhxkf9y3ZyvAV0KyAOlApngpHhOiIJ8ivUuWzjid IczEgG8TbI9JTBHj X-Received: by 10.36.113.2 with SMTP id n2mr16880743itc.38.1501446588633; Sun, 30 Jul 2017 13:29:48 -0700 (PDT) Received: from [192.168.0.8] (d199-74-164-53.col.wideopenwest.com. [74.199.53.164]) by smtp.gmail.com with ESMTPSA id r21sm10870880ita.16.2017.07.30.13.29.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Jul 2017 13:29:48 -0700 (PDT) From: Programmingkid Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Message-Id: Date: Sun, 30 Jul 2017 16:29:47 -0400 To: Peter Maydell , Eric Blake , "Daniel P. Berrange" X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4001:c0b::242 Subject: [Qemu-devel] [PATCH v2 2/2] Add more function keys to cocoa.m 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: "qemu-devel@nongnu.org qemu-devel" Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Enable the Cocoa front-end to be able to use function keys F16 to F20. Signed-off-by: John Arbuckle Reviewed-by: Daniel P. Berrange --- ui/cocoa.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/cocoa.m b/ui/cocoa.m index 93e56d0..edc7a65 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -225,6 +225,11 @@ const int mac_to_qkeycode_map[] = { [kVK_F13] = Q_KEY_CODE_PRINT, [kVK_F14] = Q_KEY_CODE_SCROLL_LOCK, [kVK_F15] = Q_KEY_CODE_PAUSE, + [kVK_F16] = Q_KEY_CODE_F16, + [kVK_F17] = Q_KEY_CODE_F17, + [kVK_F18] = Q_KEY_CODE_F18, + [kVK_F19] = Q_KEY_CODE_F19, + [kVK_F20] = Q_KEY_CODE_F20 /* * The eject and volume keys can't be used here because they are handled at