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: Konstantin Kharlamov
Subject: Re: Regarding on-key-up event
Date: Sat, 04 Feb 2023 01:05:32 +0300
User-agent: Evolution 3.46.3

On Sat, 2023-02-04 at 00:47 +0300, Konstantin Kharlamov wrote:
> On Fri, 2023-02-03 at 21:39 +0200, Eli Zaretskii wrote:
> > 
> > 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 keyboard
> 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
>     […]
>     -event6   KEYBOARD_KEY            +0.000s       *** (-1) pressed
>     jjjjjjjjjjjjjjjjjj event6   KEYBOARD_KEY            +1.280s     *** (-1)
> released
>     […]
> 
> See, there are repeating `j` on the screen, but it's created by the Qt toolkit
> of my Konsole terminal. Keyboard sent only 2 events: `pressed` and `released`.

Oops, I forgot the tool hides key names by default for security reasons.
Should've passed a `--show-keycodes` option. The *** in the output supposed to
be a KEY_J.



reply via email to

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