From patchwork Tue Mar 3 00:56:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajat Jain X-Patchwork-Id: 208140 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E7EFC3F2D7 for ; Tue, 3 Mar 2020 00:56:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E202A21D56 for ; Tue, 3 Mar 2020 00:56:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="injIeMqM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726979AbgCCA44 (ORCPT ); Mon, 2 Mar 2020 19:56:56 -0500 Received: from mail-qt1-f201.google.com ([209.85.160.201]:53577 "EHLO mail-qt1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726752AbgCCA44 (ORCPT ); Mon, 2 Mar 2020 19:56:56 -0500 Received: by mail-qt1-f201.google.com with SMTP id g6so1109805qtp.20 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=OdbK2jVf3WVvDcmxYk602OOD7q/elagLU0KfdII6aurqzazw3B4gJ2D2mx+sqgYC/Y YC4PWHiwa6/btHzyNfrPnuT9z8x2Kuy5C6pffkezlPxKiz6eQj7ZskQJBS0MEKTHA4MA ArPI/YmAstUqwfQ159TKE35Vp+UKN8RIUMclIRxUs+XU3EjPFXY9iTbVXwXxLUO9Anos fa2Qdl5BeCxd3Maz1/U4KQ4fjb3fgcMGwUQ0tJUtBhVK0b9YIIEpuws/Gdo/c79OwrA9 krftroRsOocvKHM2OJ8JFJ8YGNEkBYjXjP+MuIwTz9QX7hosUT/NKcXecS8bi/GRvu5y d+uw== X-Gm-Message-State: ANhLgQ3+IqPCHhPEFxO9Kp0ypoH6dWbWPoD4ncfDvmSRHiyH8ahOE909 LDKsIXf0M7O3J+iAKyIOuTD1BNXwxVJc X-Google-Smtp-Source: ADFU+vvXjBgQ/YGbN50roM6YKMJ/M+jQtstx9IRDHO2a0UEkj4Q3JoN3kO4kxSzTHaSfEs4ikepPnM3qRL+n 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 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@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