From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Regarding on-key-up event Date: Fri, 03 Feb 2023 21:39:39 +0200 Message-ID: <83cz6qv8qs.fsf@gnu.org> References: <83edr6vcia.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29759"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ag Ibragimov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 03 20:40:31 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pO1vB-0007WP-Gh for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Feb 2023 20:40:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pO1uW-0006A3-7Q; Fri, 03 Feb 2023 14:39:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pO1uS-00069i-Ob for emacs-devel@gnu.org; Fri, 03 Feb 2023 14:39:44 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pO1uQ-0007CI-SC; Fri, 03 Feb 2023 14:39:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=cv3TM5DUsab/GXXZGCQqsIrslpzH4sTg1akV9JMMKT4=; b=MjYArKABYa+R 3UzWRe4fgPkX6V176ZJ0zrzPbEQeQyyJf0sA40dAcY9asxNyjSfMnvKFS6kGHM8gJHuKFVQM26Eyb V+QF2KAEkpVtGfBdM7jfEaaVl36vpNmb7DWMts3NA3jr5fUoYPxMFYhgnnWVP4wtHHhEn/roucp2W tdF5OIsLKYNvMtx23T496wKTtOUKpl2ZPBP6EjFsdVn1mEwOiXv1hz9yhsyBCNBSJBeieJFURQuWy pmpZQCcAeHJ1PsT2klP77bmFQCwkv7R3UJ0dT5oYM3BVMr/aCY4dye2kcLHa9oH5wFsG3bhuCkmt5 5yQeijhlWKVNFMmKdCFy+Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pO1uI-0001Op-El; Fri, 03 Feb 2023 14:39:42 -0500 In-Reply-To: (message from Ag Ibragimov on Fri, 03 Feb 2023 13:25:53 -0600) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302933 Archived-At: > From: Ag Ibragimov > Cc: emacs-devel@gnu.org > Date: Fri, 03 Feb 2023 13:25:53 -0600 > > > I don't think I understand the question. Emacs produces a key event > > when a key was pressed and then released. So technically, we already > > have an "on-key-up" event. > > But you can't register "on-release" event, right? That makes for example > difficult to implement UX similar to an app switcher in a desktop > manager - Alt+Tab. Where as long you keep holding Alt, pressing Tab > performs an action, but releasing Alt-key gets you out. Yes, you can "register" an on-release event, just not for modifier keys like Shift or Alt. > Or even something much simpler, like temporarily increasing the > font-size while you hold the key. While you hold a key, a typical keyboard auto-repeats, so I see no problem here.