emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Physical keyboard events


From: Cecilio Pardo
Subject: Re: Physical keyboard events
Date: Tue, 5 Nov 2024 15:27:48 +0100
User-agent: Mozilla Thunderbird

On 05/11/2024 13:21, Po Lu wrote:
Cecilio Pardo <cpardo@imayhem.com> writes:

We are implementing the ability to bind an action to the press of the
key, regardless of its meaning as a modifier.  This way, we can take
advantage of double keys (Shift_L, Shift_R) and give more options to
the user.

It's not a matter of giving users more choice or finer control, but of
correctness.  How will you handle the case where the key labeled Caps
Lock is, in all functional respects, Ctrl, and that labeled Ctrl serves
another purpose that renders it simply unavailable to Emacs?

We would respond to XK_Caps_Lock by sending an event with the symbol 'capslock, and to Control with lctrl and rctrl. If the control key is unavailable beacuse it serves another purpose, then user should not bind it to anything.

I don't think this is incorrect in any way. We are giving the user the ability to detect this keypresses. It's up to the user to decide if she wants to do it or not.

But let me pose a different question: why do you need to distinguish
between left and right modifier keys?

So I can bind a different command to each one of them.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]