emacs-devel
[Top][All Lists]
Advanced

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

Re: Regarding on-key-up event


From: Eli Zaretskii
Subject: Re: Regarding on-key-up event
Date: Fri, 03 Feb 2023 21:39:39 +0200

> From: Ag Ibragimov <agzam.ibragimov@gmail.com>
> Cc: emacs-devel@gnu.org
> Date: Fri, 03 Feb 2023 13:25:53 -0600
> 
> > I don't think I understand the question.  Emacs produces a key event
> > when a key was pressed and then released.  So technically, we already
> > have an "on-key-up" event.
> 
> But you can't register "on-release" event, right? That makes for example
> difficult to implement UX similar to an app switcher in a desktop
> manager - Alt+Tab. Where as long you keep holding Alt, pressing Tab
> performs an action, but releasing Alt-key gets you out.

Yes, you can "register" an on-release event, just not for modifier
keys like Shift or Alt.

> Or even something much simpler, like temporarily increasing the
> font-size while you hold the key.

While you hold a key, a typical keyboard auto-repeats, so I see no
problem here.



reply via email to

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