From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: James Thomas Newsgroups: gmane.emacs.devel Subject: Re: Physical keyboard events Date: Wed, 30 Oct 2024 05:11:13 +0530 Message-ID: <86zfmm7a06.fsf@gmx.net> References: <86r07z58or.fsf@gnu.org> <87msimhqba.fsf@nexoid.at> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17593"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "Peter Feigl" , emacs-devel@gnu.org To: Cecilio Pardo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 30 00:42:23 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 1t5vqx-0004UC-4s for ged-emacs-devel@m.gmane-mx.org; Wed, 30 Oct 2024 00:42:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5vqC-0007t0-PG; Tue, 29 Oct 2024 19:41:38 -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 1t5vq9-0007rR-CT for emacs-devel@gnu.org; Tue, 29 Oct 2024 19:41:34 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5vq7-0006EJ-J3 for emacs-devel@gnu.org; Tue, 29 Oct 2024 19:41:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1730245279; x=1730850079; i=jimjoe@gmx.net; bh=pZeYPJsEizN3oZDo58n7pJsz2FoD0cx81x9CTn+1Llk=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=Dlbj7TxOATZYN/ue7+lSZB2OY/EXrDKf3JHN9Zde9d91evtUiuSSKsGtFDW5vY59 LkbLiE1Ap52V+y/pMOOhcELXPRjuah1y+Tpt0HEGoZZEth6XV+EQrWEBLuY5L30BY lwFVrwKg9f+zcrRiUt5uHPC9ENw7jjZgMvghyys6EpK/ncBJeLnWO6F+Dl9CpTx9K 9GF/5lg7rM0aGpYN2nKTMYBSqeJmRPL7Ie0Ff4SHQksYY8tv/d7bUXcrUri1H4IiW qGw2655nMD6qG6njWg/hNZghG9xablPoVBpgZD66swg2DHcO9rCXkoUIQhq93pDqe AW/44us4KL2e2JNnnw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from user-Inspiron-3493 ([42.108.26.27]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MCbEf-1sxN893sQN-00HWso; Wed, 30 Oct 2024 00:41:19 +0100 In-Reply-To: <87msimhqba.fsf@nexoid.at> (Peter Feigl's message of "Tue, 29 Oct 2024 16:38:49 +0100") X-Provags-ID: V03:K1:c7b4V/c7pxXH1q9vDLHqO+i6EPXCn6NRaxVC2PmHWe4PYsYDW/e FKsSjIi/Q46OiYAh6dihJ2Pn6EFIoVpbYZjY8N71uPuQJzl6+HZB3CvsrE3BnB4/1hPobAF XL7eAG+5xTMkiWP7pdefaLRDTZeDikgudO4WCD1+GDOHCeRto4n5kg3FzfvE6Cbskhn/zPW tJ625xqVN3/k1gK/bwrZQ== UI-OutboundReport: notjunk:1;M01:P0:Vh25k2/2250=;lL9iT+tE2O6vqqnn7xKcAQigdtJ wjtUET6/R7M4qySaleQev4lMhqMk8OIW7EEyfzsRAWj1zI0BSDL7aNfAecRDVQcVyRuQ1UssI s7pDRY3706/hIcXZiPyFuLJ+xVCOxuP4AOlcod8yfA/svEPWu8KClfUAy57UiWKgJahkkJbYO 8aIQqJGupcl3wMGBkndV8j5hzNpjsqN32AUNtoMXUvDSi6DAceu3eIbCPfvGM9n2OVxQEzre6 rFEgfNejZOoAbV9K10UGNxqW2vz64fbiCiCfaFD5iD+BW5H7hWXE6EEU3CG6COwMstZf4fxDr 11mBKYzXJiyrESzdw7MDn23UP7aJhpHpicLTTg7vUVAkdF7FnRtF3BwZPha5D5P2KEVUlRSQL rmLbeZFpXjX1bf6+WFFXBEjMvee9qTaXRvA/MbQkC5IvRnog4Q4QqJzBN0F0nvTHnkNmaptft jhWzlhqQiv9CCci21rK9lvh67MRYSd4Nfi9XO5f07E6VVQPiVKvDaSfdzA1dACCOsusKKGwHu wX4HSKU+U8UXub11p96dTFLCdOTWTrxgEI4UP/usr3zhy5iDowcu7aZVxDFuwQ5kg1lw3K6lZ Yv+tbuY/D2+TpBZ/jsjN927ZI1KUXlW/MvjdMHKOcDYXCnOAtt3Jw/O9U+CleX/Ydt8IwJYyr qJcOWAvEmaSFjs6UrPPixrFyJf11Knadn4df71lCyfY1ws24r9YE2suGLlLHnXDw3F6hFeUKn 9s9K5Sc17RDGOrKq9N59SLHLDGdiEbHeHBJ8q6g2+QWmxkzwUkkVsF2l3UajrbDUX4cO4fHo Received-SPF: pass client-ip=212.227.15.19; envelope-from=jimjoe@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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:324934 Archived-At: Peter Feigl wrote: >> I will define a list of keys: LeftShit, RightShift, LeftControl, etc. >> The platform dependent code will decide which one was pressed. As event= s >> will be invisible, I don't think we will interfere with input methods. > > I caution you to think about this very well, there are *very* many > non-standard keyboards or remapped keyboards out there, where users > expect everything to work. > > In general, it is best to leave the mapping of physical keys to intended > keypresses to whatever the operating system provides. In the specific > case of Xorg, please only look at the keysyms, do not try to do anything > magical with the scancodes, this will only result in a broken > implementation. > > I understand the wish to have this, but it is a way more complex topic > than it looks like from a first glance. > > I have had to deal with way too many bad implementations of this than > wanting to deal with it in Emacs as well :-/ > > Sorry for the criticism, in case you have already thought about all of > this and solved it, I'd really be interested in hearing more about it! I feel the same way. On that note, isn't it possible to achieve the same thing in Xorg simply by sending fake key or fake locked modifier events? IIRC, just using xkbcomp. =2D-