GNU bug report logs - #79352
30.2; key release events handling

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Yurii Pytomets <pitometsu@HIDDEN>; merged with #74423; dated Sun, 31 Aug 2025 02:42:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 74423 79352. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 79352 <at> debbugs.gnu.org:


Received: (at 79352) by debbugs.gnu.org; 31 Aug 2025 05:39:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 31 01:39:50 2025
Received: from localhost ([127.0.0.1]:51494 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1usan8-00034l-28
	for submit <at> debbugs.gnu.org; Sun, 31 Aug 2025 01:39:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:42814)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>)
 id 1usan5-00034N-Qw; Sun, 31 Aug 2025 01:39:48 -0400
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 <eliz@HIDDEN>)
 id 1usan0-0005Qg-IC; Sun, 31 Aug 2025 01:39:42 -0400
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=3BbKFyBzv8UtX7R1AfTKcdIrEhY3F+ulVIJXoWMN0Kg=; b=Luy1UCstGXl3
 R7LWFUkEUfL3xs1R95/GjOHLM2wtsK3oz6hZAxPkbxcu58kTAT++8AmUvo2R4gqL8JzF31Aw6LzO5
 u5AmfNGD88e/3+zsECpdxXxH6lcZQGv4E3wGuJ1HU3r4ALfPSjq53/Or2TFxgLF7YWoDlfjugstP7
 TzPaVr3Jr3aNvuX5CaqQ826Oulo2wmVRM2+5VxLROT1JtG3/9/1shyI6idTiYtQG7AN1hQeqwAPKm
 7LXCWATiGiP08wAanfea+pm2p33bVyoohdIt6FpVRzMI9lse7nXtg5QAqvYYf4ZBmbMcwh+bhMFBD
 61U93Y7PfI000RG6Igv9ZA==;
Date: Sun, 31 Aug 2025 08:39:37 +0300
Message-Id: <86y0r0nj6u.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Yurii Pytomets <pitometsu@HIDDEN>
In-Reply-To: <CAHL3MAXkEDoRpJ6ZqDoer8Abwj=pdw2waD_jDAvzzykMFWZrLQ@HIDDEN>
 (message from Yurii Pytomets on Sun, 31 Aug 2025 05:40:50 +0300)
Subject: Re: bug#79352: 30.2; key release events handling
References: <CAHL3MAXkEDoRpJ6ZqDoer8Abwj=pdw2waD_jDAvzzykMFWZrLQ@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79352
Cc: 79352 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

forcemerge 79352 74423
thanks

> From: Yurii Pytomets <pitometsu@HIDDEN>
> Date: Sun, 31 Aug 2025 05:40:50 +0300
> 
> As a user, I want to be able to set up not only a key press, but a key
> release event.

Someone is working on adding low-level keyboard events to Emacs.  When
that work is done, you will have what you want.  See bug#74423, where
this enhancement is discussed.

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79352; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 31 Aug 2025 02:41:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 30 22:41:15 2025
Received: from localhost ([127.0.0.1]:50908 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1usY0I-0001R6-V4
	for submit <at> debbugs.gnu.org; Sat, 30 Aug 2025 22:41:15 -0400
Received: from lists.gnu.org ([2001:470:142::17]:48392)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <pitometsu@HIDDEN>)
 id 1usY0F-0001Qn-GA
 for submit <at> debbugs.gnu.org; Sat, 30 Aug 2025 22:41:14 -0400
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 <pitometsu@HIDDEN>)
 id 1usY0A-0006X4-3a
 for bug-gnu-emacs@HIDDEN; Sat, 30 Aug 2025 22:41:06 -0400
Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <pitometsu@HIDDEN>)
 id 1usY08-0007R9-BH
 for bug-gnu-emacs@HIDDEN; Sat, 30 Aug 2025 22:41:05 -0400
Received: by mail-lj1-x22d.google.com with SMTP id
 38308e7fff4ca-336bbcebca9so12926661fa.1
 for <bug-gnu-emacs@HIDDEN>; Sat, 30 Aug 2025 19:41:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1756608061; x=1757212861; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=mB1BsmHiD872P8gkICEZDd0es+7YcrjkHDMDUH5v3ow=;
 b=CSlBKdGu+his2J6Tgl7NrBEhsJAulZayLC0IWUkWh+VDkyhfSizAWiSodaAuGLXIio
 03I9fdlUxUFTIBaBXGXPVcH6KQTwvdqlk9huwfw79PWjRY/1eaPgTbiHictf9bMSVsGL
 FA8qzcugmRXe2MW/gTf5cX7d07OZfqfkpjOk3MkhccoEU8zVNZPMItBY3Qdf9T2yY4AI
 mF/mbJZBclQqFUo4NWwutJSlCEICesH3LJdTX+OGjCUfPBCiNZUUPzdKYJX9nViLWE3Q
 Tsw3u53qg1NvJR4aQ5haAJ6Qsq7uP3bFbeOu8FKpW3Wc48koZ+/w0q0Bf0WTJTDy7L1t
 ehkw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1756608061; x=1757212861;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=mB1BsmHiD872P8gkICEZDd0es+7YcrjkHDMDUH5v3ow=;
 b=cJPqODuqyuLUxTm1C2wFdtwhQm6nUe1dM8jpDjz1o5gSxpS2R1HiXbJH/b1UIjFzuG
 qD4RDJOQqia5wpoUgof6Umvl09LvmYlqa3Zz1gaq4RyOmGz/BDN/Y0KZHUef+EcY7+Ba
 Y7PAQ6UcCEigjFnRj/rwZX3QhSCdGkN4Z7A+20jp7fXNb1eOFCEliIkzRWsJOzWv3uLG
 tLIGaJPWftPrezB1420ZZJwrc8cWNVu5/Vm31o9ywZvA5H1qfhC7R2ajk8TnhhzEIcg6
 eEvBa/G46aQOfHTvBwS3VK9JqQmkc6tT+HXuq40EE3UfXkWUd1hCtWWkbmPsauyGOz35
 R+Hw==
X-Gm-Message-State: AOJu0YwcSuomRAY8IJKSOiNOwd7PzKTx3I6pQBGq3do+G0H4xg7GpY8q
 qMpJpzLvQKEg3P+xV4Z1ZgIGdq0daj/9H6LvhjNoZ6gMn7PJvMdUXuhWCjcX3wqSw2JiOYj3evs
 NjT1gtUsEZzJshmdC3odkiEkEFZJleA45BITtjvw=
X-Gm-Gg: ASbGncvbOMwWkhXvfTmWqyi2/LAdV2GeUaWD9epGmeJHYw5Xjr1wagBa11zNhAVFZJj
 xhI71q9YQExwvac87qzjouhj7Ev/1PI8PNsFLgWtm1hXO76/i6VCdi5A8U2wzq6GyybDEmNM0Yn
 qxwUC+9SDd2Ea+HohPWSfGX/yrCvAMfG5uS7E735yMWl+EhpppPEuIoyEBIN4Ywb6OalMddVPMJ
 bNeFsIz5A==
X-Google-Smtp-Source: AGHT+IGpa78fukMMIkeLsycS/KQnR/39P09xOBrhaOA13QlOIWlJkRIYQGFpBLjKCPVk5pRJwsKrqoOivreF8u0LR0c=
X-Received: by 2002:a2e:b8ca:0:b0:336:cee0:d453 with SMTP id
 38308e7fff4ca-336cee0d8afmr7536531fa.2.1756608061327; Sat, 30 Aug 2025
 19:41:01 -0700 (PDT)
MIME-Version: 1.0
From: Yurii Pytomets <pitometsu@HIDDEN>
Date: Sun, 31 Aug 2025 05:40:50 +0300
X-Gm-Features: Ac12FXze4K9Y3ps5xZX4zV8cfKq9L4_TP8oK17EXnp8sZ6R8afBh0rjftRDnTUo
Message-ID: <CAHL3MAXkEDoRpJ6ZqDoer8Abwj=pdw2waD_jDAvzzykMFWZrLQ@HIDDEN>
Subject: 30.2; key release events handling
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2a00:1450:4864:20::22d;
 envelope-from=pitometsu@HIDDEN; helo=mail-lj1-x22d.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hello!

It's a feature request.

As a user, I want to be able to set up not only a key press, but a key
release event.

How can it be useful?
- according to Jeff Raskin, modes are evil and so any keyboard
prefixes or modes must be forgotten, since the modifier was released:
don't push the user to track in mind UX-related things principle.
So it's enough to map the (keyboard-quit) on any modifier key release
for the prefix hotkeys.
- it's possible to start the key input repeatedly, e.g. by pressing it
2-3 times and holding it, so repeating action would start immediately
and you would be sure about the speed of repeating: don't force the
user to wait (no timeout required) principle.

How can it be achieved technically?
AFAIK X/Wayland already supports key release events.  For the terminal
version, there's https://sw.kovidgoyal.net/kitty/keyboard-protocol/
which AFAIK could manage key release events as well for the compatible
terminals.  So the only thing is to forward that possibility to the
user to let them hook a demanded behavior.


EMACS already is pretty close to having a pretty UX, so let's
incorporate modern keyboard layer abilities to make it perfect!


-- 
With best regards,
Yuriy Pitomets




Acknowledgement sent to Yurii Pytomets <pitometsu@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#79352; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 31 Aug 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.