Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2846227ybf; Mon, 2 Mar 2020 16:59:02 -0800 (PST) X-Google-Smtp-Source: ADFU+vtGArNjtBrsG1iXOaU59n6ceGiYfloIJO8i7S5iI9gq3JlQnJRBF+pY9J0PTXl0GbOANHRu X-Received: by 2002:a9d:d06:: with SMTP id 6mr1549738oti.176.1583197142124; Mon, 02 Mar 2020 16:59:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583197142; cv=none; d=google.com; s=arc-20160816; b=i1v8hkKdUQvMXQsWCyS0L1RV14ID0CJ+w3zd72T990UufhL1lKXFRT9RX9C1g/zmjK aMWa8PduiONiFbSCEy4/xBJ8M5NY/HcnbIkBPM3L8d8bEtAwMT+2p53w47u6TsAnk0yV NoUbUMdWDrly6RB1NM+RlZi58caXp2s7VFkWejGzy+02VglP3nZdL8qTLz6+kuEP07RH RkT+XUPdB6PkEVhNpLFCgS8pYG0W5w0C+Haqp6CYzYJ6VL9R1JYqoP+bJHSFfhlQBH2i H/g5mrz5e5gMqVgaBSd2M/a3BHmeMumjuJFmo0Jwlww1/tZK2ar+vHwky3bnesK5fCvZ 4jbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=SULigJR1aTK5nhD4DW5vzLxOpw0a6L5bA6kmDOAsplI=; b=Fj58zdIhBhn26Bj7YwDpfUXmm3Q2CyTIG/+AfndYB/pWdbNWb3TnhJg5rCW4yHPQIc iHKLjf4xx2COTLpZMbu0xHypVBiCLtTdv21wQ7+Fhmhraa0bYCwWKoF1yyfbu/QKdn+c FTUEkTIOqxfdKqg2PMmr25X1ksneR4z+G7+tGTmxE2GLo3UhTbD4idjkZN/2bvE+z4XT sap7bPXNEiOiTgQKwpv8KGwi3NyNP9jWeCeCbutwa6DmQGh9CdAxnociMe8mUcppEAmR KkQNbKjccjd3MdrBF7hKU9a7aDxb3JbjgOqcgjnC9eTm+Fo87aZXARj1sVJXvJ+nyql8 KSQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=injIeMqM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t15si7082855oth.176.2020.03.02.16.58.49; Mon, 02 Mar 2020 16:59:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=injIeMqM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726998AbgCCA46 (ORCPT + 99 others); Mon, 2 Mar 2020 19:56:58 -0500 Received: from mail-qt1-f201.google.com ([209.85.160.201]:54886 "EHLO mail-qt1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726752AbgCCA45 (ORCPT ); Mon, 2 Mar 2020 19:56:57 -0500 Received: by mail-qt1-f201.google.com with SMTP id z19so1106182qts.21 for ; Mon, 02 Mar 2020 16:56:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=SULigJR1aTK5nhD4DW5vzLxOpw0a6L5bA6kmDOAsplI=; b=injIeMqMZawiZtbu21dhSltYB0O5rhrqzMybRcK8b6oGBM9+5KYW9+Pl3/HksCicAq OafNYFAgvdHTQplSo4Hp8ANg3N3TnxSepZ54fa5l0i/mschehgdcxT32ZDTK5G8pL46p R2fG29+YkvYSf/WxXFXj7ZFGZPzTpE1VuEoUjM4UPBbc7BDfVNrItSzqZALf+0+TMld0 Za4C9Tox8rorBeZDuVqisBvsBiEx99FiywWEEZoJB7a7KLuc2S8e5oBpx4FXcSoL2ocZ D01RX3pR/6WmvIyhmsah2gKKY+H2I93ABHs/nNJK5Gs+drLBYD0e0nWK3+YgpLL5sRbH Ghtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=SULigJR1aTK5nhD4DW5vzLxOpw0a6L5bA6kmDOAsplI=; b=DI3iOeZ9HL/iK+bvocZc8eQtSCGLjZvftg1hS4oIq9vMZ7XRygsYb+1UKoezwrbPR8 hpY2S8M0pKTWLwNo9VYISy7Dvbg8ZHtf13fumeJjcRlKy19sZc5n0IWgzrrjSJZNL3Pb poW9JofLxUPWewPcYJy4rntKNmPgELmKVKh99dTTFrMSEuPiwmkj0u/3fqk/SqtZR0ru utfv/roUGvvS6Xz4E1TrF70jyAUMsyyenlBX8KDe+5lLJTAOwnfb4qn2xqBRsByHtEt3 rTuKgRpmQB4NsNR1JNl5by97IE9hd2/hWQfm9i4xcE8dYRqVCh0nFv9eyzQNCOegvys5 YbJQ== X-Gm-Message-State: ANhLgQ11Azj5ocXRcQLgBuE8tiMCBbTvu0tusnKRTT1olpxXN4ErjDJd yPEKTeVIZx8sablcRRl8FZzrFKbZ5x+5 X-Received: by 2002:a0c:ef05:: with SMTP id t5mr2014421qvr.240.1583197015091; Mon, 02 Mar 2020 16:56:55 -0800 (PST) Date: Mon, 2 Mar 2020 16:56:45 -0800 In-Reply-To: <20200303005645.237763-1-rajatja@google.com> Message-Id: <20200303005645.237763-2-rajatja@google.com> Mime-Version: 1.0 References: <20200303005645.237763-1-rajatja@google.com> X-Mailer: git-send-email 2.25.0.265.gbab2e86ba0-goog Subject: [PATCH 2/2] Input: Allocate keycode for SNIP key From: Rajat Jain To: Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, dtor@google.com Cc: Rajat Jain , rajatxjain@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org New chromeos keyboards have a "snip" key that is basically a selective screenshot (allows a user to select an area of screen to be copied). Allocate a keyvode for it. Signed-off-by: Rajat Jain --- include/uapi/linux/input-event-codes.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h index e12a19dc30262..51f419657d044 100644 --- a/include/uapi/linux/input-event-codes.h +++ b/include/uapi/linux/input-event-codes.h @@ -656,6 +656,9 @@ #define KEY_KBD_BKLIGHT_UP 0x280 #define KEY_KBD_BKLIGHT_DOWN 0x281 +/* Selective Screenshot */ +#define KEY_SNIP 0x282 + /* * Some keyboards have keys which do not have a defined meaning, these keys * are intended to be programmed / bound to macros by the user. For most -- 2.25.0.265.gbab2e86ba0-goog