libinput: Support for long press key detection?

Carsten Haitzler (The Rasterman) raster at
Tue Oct 21 12:03:19 PDT 2014

On Tue, 21 Oct 2014 20:21:26 +0200 Stefanie Behme <steffi.behme at> said:

> Hi,
> on last ELCE in Duesseldorf I learned that the development of libinput 
> was started to handle input devices in Wayland compositors. I had a look 
> in the API documentation and found that the enum "libinput_key_state" 
> has these values: LIBINPUT_KEY_STATE_RELEASED and 
> There is a need to detect if a key is pressed (and hold) for a certain 
> amount of time. If this is the case a long-press key event is send. It 
> is also possible that several long-press key events are defined for one 
> key, e.g.:
> A long press on a key is e.g. used to create a screen shot.
> Is there any plan to support this kind of long press detection? How 
> could this look like? Any ideas?

can you explain why this needs or  should be done at the libinput level and not
in the app/toolkit where it already is handled (at least in some toolkits).

------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    raster at

More information about the wayland-devel mailing list