Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp919016ybh; Thu, 12 Mar 2020 13:33:28 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuzSulrace80JjPQf88pVG77KMhvqiXu2LuJx6Cp3Iyqdn0gLOPmsc+5OpY3ftRHvL0w+k2 X-Received: by 2002:a9d:12cc:: with SMTP id g70mr7620991otg.115.1584045208431; Thu, 12 Mar 2020 13:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584045208; cv=none; d=google.com; s=arc-20160816; b=uCPe6HokyjQXid1O45gr7+dVgyWJg2liZrk7sGhBBcGvFH8oBH5OLF/Dl9h3dnilR0 3jD77DKi4eq38QpArbTAI+pPzsbe98xmyTvk2RZVvV/zCeGjXpC6Zo35yqgZP+CmJ8Eu VRa8H/TejTHOuqZKPJxf4r+nH1EX1nEIfaZ3QK0Z41kypwho5L1x8MOKwjKKjnnQvtXJ GZzRma+oCDfKwpm7EnNBtOSP2FgtEOUJhK98mZW2/r9sqLnak39V3jS0HxegTQPHsi8E ZsRQtGqFmXWJ7fArt5rUqaeURy1Th1y6iCr5DyFRvXGljCD8B0O1s9gZ0k4yPs6S3+Cc 45rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OSLhuIxEpdiu4IChuu+kUY7XbNTQNzxVu0kBYJHewI0=; b=oHN4JFrxoM3JNy5DC5lhFLoPn/JfFHSefLH1WBx/e+SIwQ/m9Xd5wrVquG/Ze6aVYW o4QnIMNzr606Vr2oamqqK8SREi8o28NEGzxS71ZnqyxzArCzb9H8mcZseMYPja4aZr/5 arZQYbKfAWxsQeHha6XadKMMKwvS3UOlJQTrDu2X4aoS+BncBbaY/gNoQcf2q2bQVe/M 9e4hU2+hOXJ8MCSvM73nUHBDi93N1nNk/8Bz2ihGXslBScoDTKCSVHDiydM8M/Sj9OLm RQjmg6CNB7zxPMiFhp20ApqQFnAIdwLwSgYCW/SH+SKH8jQ0I2UugpFKvcDHp0+YVcVN 4I0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eTGxhfXP; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10si3115605oth.136.2020.03.12.13.33.14; Thu, 12 Mar 2020 13:33:28 -0700 (PDT) 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=@chromium.org header.s=google header.b=eTGxhfXP; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726864AbgCLUbu (ORCPT + 99 others); Thu, 12 Mar 2020 16:31:50 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:33950 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbgCLUbt (ORCPT ); Thu, 12 Mar 2020 16:31:49 -0400 Received: by mail-qt1-f196.google.com with SMTP id 59so5584414qtb.1 for ; Thu, 12 Mar 2020 13:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OSLhuIxEpdiu4IChuu+kUY7XbNTQNzxVu0kBYJHewI0=; b=eTGxhfXPoIRX+zZNKelilanBP2pQAgyeLUeHUq4AebBDBvuoAcOqcvK6/rL1VkDS3T KmZ2HJV92jzkFplHPBuV9azhiNjpj45MVNZ1V8lApj0Bd5r/q6wUmH65V3uUl5ZpIiSJ fdJ89S2UTfx4MI4020mmrVTAnmsWaDBO/g/so= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OSLhuIxEpdiu4IChuu+kUY7XbNTQNzxVu0kBYJHewI0=; b=Ifj99vN2o8bCRlsiRjr9hA8u7fMwoNPPSKf8/mGS0GHFKlqCgpbLCATrlFqIv34Yr/ qnrF5bGto2vfVRHgGp/v3BO8V/rNgpnk9yYEIh9GoF8EE4M//t8ocbv9FAEYDzn822Gj dGS4gHTM8nUNFeVmZvMTO0BqG9mzzxJSqlcPDGLuTHUS9wd8wgEwffPwaU7e71BouIBF DvQZ567AGomsUZ7FcuZHbhwJRGOrS5bj1Rirxfeq6QL+FCJRwYv3wzxjOn5a+h7GPvE6 r54fZuOQ66eNkuo7+wGKQFfwE+SfhbFMfw6XV8ihn+aVm4W4COtNh13GXsQAyUa0XG37 tQeg== X-Gm-Message-State: ANhLgQ1VcDQIw4gk+Mys2qIYJA1tRRTk4u3DrFpthfmYQCAz5XFsZOBa /akQtd9HLlV1zpAK7Gllo6ZAMf7GyD8= X-Received: by 2002:ac8:4906:: with SMTP id e6mr9221409qtq.178.1584045108459; Thu, 12 Mar 2020 13:31:48 -0700 (PDT) Received: from mail-qk1-f175.google.com (mail-qk1-f175.google.com. [209.85.222.175]) by smtp.gmail.com with ESMTPSA id d72sm7593894qkc.88.2020.03.12.13.31.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Mar 2020 13:31:47 -0700 (PDT) Received: by mail-qk1-f175.google.com with SMTP id f3so8649337qkh.1 for ; Thu, 12 Mar 2020 13:31:47 -0700 (PDT) X-Received: by 2002:a37:a543:: with SMTP id o64mr8063320qke.460.1584045106987; Thu, 12 Mar 2020 13:31:46 -0700 (PDT) MIME-Version: 1.0 References: <20200304002137.83630-1-rajatja@google.com> In-Reply-To: <20200304002137.83630-1-rajatja@google.com> From: Harry Cutts Date: Thu, 12 Mar 2020 13:31:35 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] Input: Allocate keycode for SNIP key To: Rajat Jain Cc: Dmitry Torokhov , linux-input , lkml , Dmitry Torokhov 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 On Tue, 3 Mar 2020 at 16:21, Rajat Jain wrote: > > 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 > --- > V2: Drop patch [1/2] and instead rebase this on top of Linus' tree. > > 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 0f1db1cccc3fd..08c8572891efb 100644 > --- a/include/uapi/linux/input-event-codes.h > +++ b/include/uapi/linux/input-event-codes.h > @@ -652,6 +652,9 @@ > /* Electronic privacy screen control */ > #define KEY_PRIVACY_SCREEN_TOGGLE 0x279 > > +/* Selective Screenshot */ > +#define KEY_SNIP 0x280 > + It's not very obvious to me what KEY_SNIP represents, without the comment above. Maybe you could call it something like KEY_SELECTIVE_SCREENSHOT, so that its purpose is more apparent to someone seeing it in use. Harry Cutts Chrome OS Touch/Input team > /* > * 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 >