From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Konstantin Kharlamov Newsgroups: gmane.emacs.devel Subject: Re: Regarding on-key-up event Date: Sat, 04 Feb 2023 00:47:14 +0300 Message-ID: References: <83edr6vcia.fsf@gnu.org> <83cz6qv8qs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6009"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.46.3 Cc: emacs-devel@gnu.org To: Eli Zaretskii , Ag Ibragimov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 03 22:48:16 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 1pO3uq-0001J5-Cy for ged-emacs-devel@m.gmane-mx.org; Fri, 03 Feb 2023 22:48:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pO3u1-0006qZ-Qz; Fri, 03 Feb 2023 16:47:25 -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 1pO3tz-0006oN-Ir for emacs-devel@gnu.org; Fri, 03 Feb 2023 16:47:23 -0500 Original-Received: from forward502a.mail.yandex.net ([178.154.239.82]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pO3tw-0004Gj-Ks; Fri, 03 Feb 2023 16:47:23 -0500 Original-Received: from vla5-ea54f853bdd2.qloud-c.yandex.net (vla5-ea54f853bdd2.qloud-c.yandex.net [IPv6:2a02:6b8:c18:3e9f:0:640:ea54:f853]) by forward502a.mail.yandex.net (Yandex) with ESMTP id 566C85E78F; Sat, 4 Feb 2023 00:47:15 +0300 (MSK) Original-Received: by vla5-ea54f853bdd2.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id ElgZXFpcvCg1-ijKzK2Tg; Sat, 04 Feb 2023 00:47:15 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1675460835; bh=wJ8x13nR63kl39B0s2047i+IlPOnbhppzgGOC/7mvZ4=; h=References:Date:In-Reply-To:Cc:To:From:Subject:Message-ID; b=CaD9d20uKHqa8zaapAdd0snf+UA2owyQ8367pgbwVwc832DZn+aAPJkLq/kA1BAiE K6r4bADDICjL72oFPOrXhPTggjF+qhFgsZvKZ6QwHQwxSomLEcIwGJ8qXz/SoV2VB0 +8Nrbw09H1yQ97dzZGJFxQvyNzVm0JpeFexPHuKQ= Authentication-Results: vla5-ea54f853bdd2.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru In-Reply-To: <83cz6qv8qs.fsf@gnu.org> Received-SPF: pass client-ip=178.154.239.82; envelope-from=hi-angel@yandex.ru; helo=forward502a.mail.yandex.net 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:302937 Archived-At: On Fri, 2023-02-03 at 21:39 +0200, Eli Zaretskii wrote: >=20 > While you hold a key, a typical keyboard auto-repeats, so I see no > problem here. I am not aware of any keyboard that repeats its events upon holding a key. Repetition is usually implemented in a toolkit handling key events. A keybo= ard typically sends a single "pressed" event, and then after you done holding a= key it sends a "released" event. Here's a proof: I run `libinput debug-events --verbose`, then hold `j`: $ libinput debug-events --verbose [=E2=80=A6] -event6 KEYBOARD_KEY +0.000s *** (-1) pressed jjjjjjjjjjjjjjjjjj event6 KEYBOARD_KEY +1.280s *** (-1= ) released [=E2=80=A6] See, there are repeating `j` on the screen, but it's created by the Qt tool= kit of my Konsole terminal. Keyboard sent only 2 events: `pressed` and `release= d`.