From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Nikulin Newsgroups: gmane.emacs.devel Subject: Re: Physical keyboard events Date: Wed, 30 Oct 2024 09:56:30 +0700 Message-ID: References: <86r07z58or.fsf@gnu.org> <86froe6eq3.fsf@gnu.org> <864j4u6bug.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3874"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 30 04:22:43 2024 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 1t5zIA-0000qS-Vf for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Oct 2024 04:22:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5zHM-0000uq-Jo; Tue, 29 Oct 2024 23:21:52 -0400 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 1t5yt8-0006PG-Eq for emacs-devel@gnu.org; Tue, 29 Oct 2024 22:56:50 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5yt3-0008MK-Ml for emacs-devel@gnu.org; Tue, 29 Oct 2024 22:56:47 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1t5ysz-0008K4-At for emacs-devel@gnu.org; Wed, 30 Oct 2024 03:56:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Content-Language: en-US, ru-RU In-Reply-To: <864j4u6bug.fsf@gnu.org> Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 26 X-Spam_score: 2.6 X-Spam_bar: ++ X-Spam_report: (2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 29 Oct 2024 23:21:51 -0400 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:324935 Archived-At: On 30/10/2024 00:46, Eli Zaretskii wrote: >> From: Yuri Khan Date: Tue, 29 Oct 2024 23:55:49 +0700 >> When I’m switched to a layout where the ‘a’ key produces an ‘ф’ >> character, or an ‘α’, or a ち, I’d still want Ctrl+this key to behave >> as C-a. > > Yes, but you want that _only_ for keys with modifiers. Which is not > what will happen. Some feature... Not *for key with modifiers*, but during lookup in keymaps. There are enough keybindings that include keys without modifiers. It is a recurring confusion that appears in every discussion of related bugs and in mailing list threads, e.g. "keyboard layout handling incompatible with rest of the OS" Perhaps it is impossible to achieve in terminal frames. Modifier-only gestures sounds like a different feature though. Cecilio, in the case of severe resistance you may consider another approach: sniff keyboard events at lower level (xinput2? IBus plugin?) by a dedicated daemon and emit D-Bus events that may be interpreted by Emacs (and other applications). The bonus is support of Emacs frames inside terminal applications. Isolation of applications in Wayland may be a trouble, but perhaps some compositors support configurable gestures out of the box.